why unresolved inclusion and syntax error exist but still compile ok and function works?

New to XMOS and XCore? Get started here.
Post Reply
TonyXiao
Active Member
Posts: 44
Joined: Fri Mar 29, 2019 3:58 am

why unresolved inclusion and syntax error exist but still compile ok and function works?

Post by TonyXiao »

Hi all

i am trying fix bugs of my project, and found something strange.
syntax error.png
(15.2 KiB) Not downloaded yet
syntax error.png
(15.2 KiB) Not downloaded yet
unresolved inclusion.png
unresolved inclusion.png (4.28 KiB) Viewed 3031 times
unresolved inclusion.png
unresolved inclusion.png (4.28 KiB) Viewed 3031 times
there are many of such question mark. but do can compile without any errors, and debug and run all works,
can somebody tell me why?

BR,
Tony


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

https://stackoverflow.com/questions/933 ... ry-headers

The headers / files with question mark are getting resolved. As a test, rename the header reference to a random filename that really does not exist in your filesystem. Then an error should be raised.
TonyXiao
Active Member
Posts: 44
Joined: Fri Mar 29, 2019 3:58 am

Post by TonyXiao »

Hi mon2

Thanks for your quick reply.
for the unresolved inclusion, i have changed all the head files with obsolute address, then such yellow question mart disappeared.
how about the syntax error? is the same issue?

BR,
Tony
Post Reply