compiling library

If you have a simple question and just want an answer.
jsaksris
Member++
Posts: 25
Joined: Wed Jul 04, 2018 4:06 pm

compiling library

Postby jsaksris » Wed Dec 19, 2018 4:47 pm

It seems that the when adding library to the code (lib_usb, lib_gpio, lib_i2c)

The problem occurs when compiling, the program doesn't seems to find the .h files.
These files are in the api folder of each library

the path have been added to "property > general > path and symbols" as a workspace path.
but the program still cannot see..

Is there any doccument regarding the use of the said API?
What am I missing here
Gothmag
Experienced Member
Posts: 126
Joined: Wed May 11, 2016 3:50 pm

Postby Gothmag » Wed Dec 19, 2018 6:10 pm

Make sure you include the relevant headers and select/add the lib to your makefile.
jsaksris
Member++
Posts: 25
Joined: Wed Jul 04, 2018 4:06 pm

Postby jsaksris » Fri Dec 21, 2018 9:39 am

would you erraborate on adding the path to makefile?

In C there's usually a source variable to add path to gcc with -I
The xmos makefile doesn't seems to be evident here.
jsaksris
Member++
Posts: 25
Joined: Wed Jul 04, 2018 4:06 pm

Postby jsaksris » Fri Dec 21, 2018 9:53 am

viewtopic.php?t=234

I may have answered my own question...
oh well, I'll leave it here so the next person have an easier time finding it

Who is online

Users browsing this forum: No registered users and 0 guests