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.

Is the Compiler Ignoring My Include Files? (unresolved symbols)

When I compile I receive errors and warnings that look like:

unresolved symbol XXXXXX

and

#225-D  function declared implicitly

Which I would expect to see if I was missing a header file, however I have included a header file that defines these and added the directory to the include search path .

I thought that maybe the directory wasn't right since I used a variable in the search path field, so I put the full file path there instead: No dice.

Restarted CCS, Did a clean build, remade the project, started a new project, ran as administrator: nothing

So the weird thing is that there is no "question mark" next to the include file and I can also ctrl+click on them and it opens the correct file, so CCS is finding them but the compiler/linker isn't.

Any advice?

  • Hello,

    Kristopher Metcalfe said:

    When I compile I receive errors and warnings that look like:

    unresolved symbol XXXXXX

    and

    #225-D  function declared implicitly

    Kristopher Metcalfe said:
    Which I would expect to see if I was missing a header file

    Actually this is something you would see if you were missing a library or object file that contains the symbols in question. It is a linker error, not a compiler error.

    Kristopher Metcalfe said:
    however I have included a header file that defines these and added the directory to the include search path .

    This wouldn't help since include search paths are only for header files. You need to make sure you are including all the necessary libraries and library search paths. These options are under the linker options

    Thanks

    ki

  • Ki,

    You are definitely right that it was a library problem, but it was a little more specific to the StellarisWare driver library (This information would have helped you answer, I'm sure, but I thought it was something else I was missing). I had all of the correct includes and search paths set, but the StellarisWare driverlib library requires some predefined symbols to be set in the ARM compiler options.

    Settings for CCS and the Stellaris Launchpad (different depending on setup):

    ccs="ccs"
    PART_LM4F120H5QR
    TARGET_IS_BLIZZARD_RA1

    Thanks a lot for your help!

  • Kristopher Metcalfe said:
    but the StellarisWare driverlib library requires some predefined symbols to be set in the ARM compiler options.

    Sorry, I don't know much about this. The experts in the Stellaris forums would know best.

    Thanks

    ki