compiling library

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

compiling library

Post by jsaksris »

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
XCore Addict
Posts: 129
Joined: Wed May 11, 2016 3:50 pm

Post by Gothmag »

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

Post by jsaksris »

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: 29
Joined: Wed Jul 04, 2018 4:06 pm

Post by jsaksris »

http://www.xcore.com/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
Post Reply