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.

Unresolved symbol, but all include paths are definend



Hi,

I tried to compile a project using the driver lib sysctl but the built failed. I got the following errors:

undefined   first referenced
  symbol         in file     
 ---------   ----------------
 SysCtlDelay ./main.obj      

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "delay_test.out" not built
This is the code I tried to compile: 
#include <inc/hw_types.h>
#include <driverlib/SysCtl.h>

 
void main(void)
{
    SysCtlDelay(1);
    
    while (1);
}
In the build settings I added the path of the stellaris ware: "C:\StellarisWare".  Additionally there is the standart include path "${CG_TOOL_ROOT}/include" in the list.
I checked different threads in the forum and read the CCS documentation http://processors.wiki.ti.com/index.php/Include_paths_and_options but I didn't found a solution which solves my problem.
How can I solve the problem?

Regards Jannis

  • Hi Jannis,

    a typical cause of unresolved symbols is a library being missing/not included properly.  

    See this wiki which shows how to add/correct this.  It seems likely you need to let ccs know you are using drvlib and where it is.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Please keep us informed.

    Best Regards,
    LIsa

  • Hi,

    I allready checked the wikipage, before I opened this thread. I also linked the two files, the header and the c-file directly into my project, using the procedure from the wiki page.  

    I can compile project0 with the same include paths even if I import the project into my workspace. 

    Wich settings must be done to get this working, is there something more than only adding the include paths in the in include options?

    Reards Jannis

    EDIT: I entered the wrong paths in the linker tab, now it works fine. 

  • Hi Jannis,

    glad to hear it is now working.  Libraries get entered, as shown, in the linkers file search path.


    Thanks for the udpate and all the best with development.

    Best Regards,

    Lisa