Link errors on skeleton CTL project
I made a skeleton source file by editing one of your CTL demo files for my target platform, it's dummy code, I just wanted to see whether it would build. The build threw up a bundle of link errors, I have no idea what the problem is. Can anyone see what's wrong? Thanks in advance.
Target is NXP LPC2138.
The CTL environment is installed, and activated for the project.
*************** Code follows:
#include <ctl_api.h>
int count ;
void onTimer(void)
{
count++;
}
int main(void)
{
ctl_global_interrupts_enable();
while(1)
{
;
}
return 0;
}
******************** Errors are as follows:
C:/Users/bvarl/AppData/Local/Rowley Associates Limited/CrossWorks for
ARM/v4/packages/libraries/libctl/lib/libctl_v4t_a_le_eabi.a(ctl_unity.o): in function
`ctl_private_reschedule':
ctl_unity.c:(.text.libctl.ctl_private_reschedule+0x138): undefined reference to `ctl_handle_error'
C:/Users/bvarl/AppData/Local/Rowley Associates Limited/CrossWorks for
ARM/v4/packages/libraries/libctl/lib/libctl_v4t_a_le_eabi.a(ctl_unity.o): in function `ctl_task_die':
ctl_unity.c:(.text.libctl.ctl_task_die+0x54): undefined reference to
`ctl_handle_error'C:/Users/bvarl/AppData/Local/Rowley Associates Limited/CrossWorks for
ARM/v4/packages/libraries/libctl/lib/libctl_v4t_a_le_eabi.a(ctl_arm.o): in
function `do_switch_if_needed':
(.text.libctl+0x190): undefined reference to `ctl_handle_error'
Please sign in to leave a comment.
Comments
0 comments