![]() ![]() This is mbed_error.h file #ifdef _cplusplusĪnd this is the result from the console 13:45:44 **** Build of configuration Debug for project testeLINKER **** Prevent recursion if error is called again This is where the function is defined (inside the static library) mbed_error.c #include It can not find where it's defined though!Įrror("Stream obj failure, errno=%d\r\n", PS: The problem is with the Linker, since the project finds where the weak function is declared. The Linker returns "undefined reference to. The compilation works, but when I Try to link this library into another project (an executable project). The second part is the problem, because I want to implement Unit Testing in the project!įor this, I have created another configuration for the same Driver Layer static library (the one with STM32 HAL code), but this time I'm compiling it with MinGW. I can link it in other projects and it does work as it should. These library is being compiled with ARM GCC and works great. This library contains basically the STM32 HAL, and this library contains A LOT of weak functions). In this system, I have a driver layer (built as a static library. I am using Atollic TrueStudio to develop an Embedded System. First, I would like to introduce my problem to you all! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |