ctl.h and undefined reference
Hi,
I want to build a project and I have some trouble with ctl.h ; initially I had the error "no such file or directory" when including ctl.h, so I added it in C:\Program Files\Rowley Associates Limited\CrossWorks for ARM 2.0\include
Then it was ok but now I have errors during linking process, like those ones (see attached file "without ctl.c") :
undefined reference to 'ctl_get_current_time'
undefined reference to 'ctl_timeout_wait'
undefined reference to 'ctl_tas_set_priority'
...
I added ctl.c in my project and as a consequence previous link errors was gone but I have others... (see attached file "with ctl.c")
Where I'm wrong ?
Thanks
Baptiste
without ctl.c.jpg
with ctl.c.jpg
-
I found it in ctl directory. Thank you
I am trying to measure the time for a function execution. I tried the following:
Using "'ctl_get_current_time'" but the linker gives me this error:
undefined symbol '_ctl_get_current_time'?
Also I tried to use the "time function" defined in time.h, but I am getting the same error:
error: undefined symbol '_time'
How can I get the time measurement in this case?
Please sign in to leave a comment.
Comments
12 comments