This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi guys,
I'm compiling an example from StellarisWare but after importing to CCSv4 I am getting the following linking errors:
<Linking>
undefined first referenced
symbol in file
--------- ----------------
Formike128x128x16BacklightOn ./interrupts.obj
Formike128x128x16Init ./interrupts.obj
GrContextInit ./interrupts.obj
GrRectDraw ./interrupts.obj
GrRectFill ./interrupts.obj
GrStringDraw ./interrupts.obj
GrStringWidthGet ./interrupts.obj
IntMasterDisable ./interrupts.obj
IntMasterEnable ./interrupts.obj
ROM_GPIOPinTypeGPIOOutput ./interrupts.obj
ROM_GPIOPinWrite ./interrupts.obj
ROM_IntDisable ./interrupts.obj
ROM_IntEnable ./interrupts.obj
ROM_IntPrioritySet ./interrupts.obj
ROM_SysCtlClockGet ./interrupts.obj
ROM_SysCtlClockSet ./interrupts.obj
ROM_SysCtlPeripheralEnable ./interrupts.obj
ROM_SysTickEnable ./interrupts.obj
ROM_SysTickPeriodSet ./interrupts.obj
ROM_SysTickValueGet ./interrupts.obj
g_sFontFixed6x8 ./interrupts.obj
g_sFormike128x128x16 ./interrupts.obj
error: unresolved symbols remain
error: errors encountered during linking; "interrupt_test2.out" not built
***
I have done a search in the forums for this and it appears that I might be missing a library of some sort. Does anyone know what library I could be missing and how i could add it to my project? I'm using the LM3S3748.
If you are importing the StellarisWare example into CCS and trying to build it, I'm not sure why you would get those errors. The StellarisWare examples should compile right out of the box.
In any case, I think you are missing:
C:\StellarisWare\driverlib\ccs\Debug\driverlib.lib
C:\StellarisWare\grlib\ccs\Debug\grlib.lib
You can add those paths on your linker options and see if that helps.
right-click on your project and select 'Build Properties'. Then add the paths to the libraries as show in the screenshot below:
Thanks
ki
Hey Ki,
I just wanted to say I had this same problem with Tivaware tonight and while searching the forums found this solution. It also worked for me so thanks a lot! I did want to elaborate a bit that I initially added the director to the "add <dir> to library search path" section which didn't help. I had to add the driver.lib in \driverlib\css\Debug\driver.lib to the "Include library file or command file as input" and that did it.
One question thought, what is the .lib file? I thought the only thing you had to have with the header was the *.c file defining functions etc...?
Thanks,
Rob
Thanks, Rob, that worked for me, to, with Tivaware. It is so strange (and frustrating!). I built my project by modifying a lab project from lab4 from the training series here. That project, like mine, uses SysCtlClockSet, but it compiles OK. I also tried copying settings from another project from the same series, lab8. It was not until I implemented the solution you suggest that I was able to eliminate the unresolved symbols remain error. That leaves the configuration of my project different from other projects that use the same SysCtlClockSet. Go figure!
Here is more relevant strangeness: pasting the path to driverlib.lib into the little text box did not work. What worked was clicking on the "file system" button and navigating to driverlib.lib, then clicking OK. The end result appears to be the same, but it is only manually adding the path that works, not pasting in the same path. Again: go figure!