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?

Postby TonyXiao » Fri Nov 15, 2019 10:21 am

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: 1849
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Fri Nov 15, 2019 11:27 am

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

Postby TonyXiao » Mon Nov 18, 2019 3:24 am

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

Who is online

Users browsing this forum: No registered users and 1 guest