Page 1 of 1

compiling library

Posted: Wed Dec 19, 2018 4:47 pm
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

Re: compiling library

Posted: Wed Dec 19, 2018 6:10 pm
by Gothmag
Make sure you include the relevant headers and select/add the lib to your makefile.

Re: compiling library

Posted: Fri Dec 21, 2018 9:39 am
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.

Re: compiling library

Posted: Fri Dec 21, 2018 9:53 am
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