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
compiling library
-
- Member++
- Posts: 29
- Joined: Wed Jul 04, 2018 4:06 pm
-
- XCore Addict
- Posts: 129
- Joined: Wed May 11, 2016 3:50 pm
Make sure you include the relevant headers and select/add the lib to your makefile.
-
- Member++
- Posts: 29
- Joined: Wed Jul 04, 2018 4:06 pm
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.
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.
-
- Member++
- Posts: 29
- Joined: Wed Jul 04, 2018 4:06 pm
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
I may have answered my own question...
oh well, I'll leave it here so the next person have an easier time finding it