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.

Compiler/CC3200-LAUNCHXL: "unresolved symbols remain" on Energia.h file and errors in stdint.h lib at compilation

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200, ENERGIA

Tool/software: TI C/C++ Compiler

Hello everyone !

I'm not used to playing with C/C++ or even with compiled languages so maybe it'll be a dumb question but after a lot of research, I don't know what to do.

A bit of information about my environment :
- OS : Win 10
- CCS version : 6
- Compiler version : TI v16.9.3.LTS

As I need to use Free-RTOS, my project is based on the "freertos_demo" example from CC3200's examples. This is the project's structure :

I started my project using Energia and I wanted to use it inside this "freertos_demo" project. To do so, I needed to include Energia.h header.

The IDE recognizes well the methods, but when I compile I get this error :

I googled the error and found that the problem was due to some needed files not found by the linker.

The errors being all due to methods defined in Energia.h, I tried several ways to include it. After a few unsuccessfully attempts,  I put it in the File Search Path like this :

With this, the error did disappear, but to be replaced by the following :

Now I am wondering: have I properly fixed my previous error and am I now facing a completely different issue ? Or are these two issues linked ?


I hope that I have given you enough information, please ask me if you need some more.

Thanks for reading me !

  • The core of your misunderstanding is here ...

    Joelle Ferrari said:

    I googled the error and found that the problem was due to some needed files not found by the linker.

    The errors being all due to methods defined in Energia.h, I tried several ways to include it.

    You mistakenly think that the implementation of the missing functions is somehow contained in Energia.h.  That is incorrect.  Energia.h contains a declaration of those functions, and nothing more.  A declaration tells the compiler the name of the function, the number and types of the arguments, and the type of the return value.  With that information, the compiler can call the function, tell you when your code makes an error when calling it, and so on.  But none of that supplies the implementation of the function itself.

    The implementation of a function is supplied in a C (or C++ or assembly) source file.  Some source files are in your project.  But your code calls functions that are not present in any of those source files.  Where do they come from?  An object library is a collection of object files, i.e. pre-built code.  The linker knows how to get the files and functions out of library and put those function implementations in your program.

    So the "needed files not found by the linker" come from a missing library, and not a missing header file.  

    All that said, I don't know enough about your project to tell you which library you are missing.  If you can't work it out, then I'll have to send you over to the Simplelink experts.

    Thanks and regards,

    -George

  • Hello George,

    Thank you very much for your answer. Indeed now that you said this, it is obvious !

    I did work again on the project these two past days, but my problem is that I can't find where is located the source file for Energia.h header.

    In fact, I can't find a way to import Energia framework properly... And I think that the source file for Energia.h must be included there.

    I tried to set the same File Search Path, Build Variables and Path and Symbols in the project's build settings as the settings in the Energia sketch I first did, but I still get the same error : he can't find the methods defined in Energia.h. (undefined symbols)

    For example the File Search Path : 

    - From the imported Energia sketch (compiler : GNU v4.8.8)

    - From my project (compiler : TI v16.9.3.LTS)

    I had to remove ENERGIA_CORE_LIBRARIES from my project because he couldn't find any of the given files.

    Maybe should I ask in another section of the forum ?

    Thanks,

    Joëlle

  • Unfortunately, I am not familiar with how CC3200 projects are typically configured.  I recommend you start a new thread in the SimpleLink forum.  Or, if you prefer, I can move this thread into that forum.

    Thanks and regards,

    -George

  • Thanks for your help,

    I opened a new thread in SimpleLink forum.

    Thanks :)