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

New to XMOS and XCore? Get started here.
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
unresolved inclusion.png
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
You do not have the required permissions to view the files attached to this post.


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

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