2020-08-12 04:56 AM
Hello, I'm new in STM32CubeIDE.
I want to create my library to use in my C/C++ project.
My library includes 2 files (.c and .h) but I don't know how to linking them in CubeIDE.
Anyone can help me?
Many thanks,
Hieu
Solved! Go to Solution.
2020-08-18 01:48 AM
glad to hear that
2021-05-06 09:06 AM
Hello!
I try to link an exisiting library (.h and .cpp files) to a new project but the compilator dont see it
I'v drag the library folder into my project and selected "link files and create virtual folders"
And added de dependancies in the following entries:
In "Linked ressources" in "Path Variable"
In "Path and symbols" in "Include", "Library Path" and "Source Location"
in "Preprocessor Include Path Macros ..." in "CDT User Settings"
I'v put the path to the library folder where I thought it was necesary and after i'v put it everywhere I could >.<
There is no weird characters or spaces in the full path of the project or library.
i'v also tryed to put the linkes to the files in core/src and core/inc or in Middlewares but same issue.
I realy need the files to be linked and not in copie because they are used in the windows client and for the two core projects.
Did I missed or do something wrong ?
Thank you for your help !
Version: 1.6.1
Build: 9958_20210326_1446 (UTC)
Fresh and working project
Win10 Nucleo 144h745zi
2021-05-06 09:21 AM
Include paths are be in project properties -> C/C++ Build -> Settings -> Tool Settings -> MCU G++ Compiler -> Include paths. If that doesn't fix it, make a new thread and show a screenshot of your include paths.
2021-05-06 09:52 AM
2022-02-05 09:35 AM
Yes this works ...
Include paths are be in project properties -> C/C++ Build -> Settings -> Tool Settings -> MCU G++ Compiler -> Include paths.
>Click >> Workspace