2011-07-28 04:46 AM
Hi, (edit - first time question not displayed)
Is anybody here who use Atollic TrueStudio/STM32 Lite with libraries (.a) ?
I have problem, when I try add library to project (
project Properties -> C/C++ General ->
Paths and Symbols -> Libraries), compiler stop error:
c:/program files/atollic/truestudio stm32 lite 2.1.0/armtools/bin/../lib/gcc/arm-atollic-eabi/4.5.1/../../../../arm-atollic-eabi/bin/ld.exe: cannot find -lC:\Users\Home\Atollic\TrueSTUDIO\STM32_workspace\stm\Libraries\simplemac-library.a
I try different locations with library (Program Files, Project folder,
Src folder, USB pen..) and different names of library. I try OSWindows7 and XP. This error always occurs.
If I try add library folder in Library paths, compiller don't find library. Atollic support write me only, this isn't limitation of Lite version.
I want to use stm32w software stack library.
Is there
somebody
who
can add
a library,
or
somebody
had
this
problem?
Thanks.
#atollic-library #what's-the-question?2012-01-18 01:41 AM
Of course it's frustrating, but I cant imagine, that it's not possible to setup static libraries in the Lite version. No one would build a car without a brake ...
2012-02-16 10:18 PM
I wrote to Atollic support.
They inform me, that adding compiled libraries (i.e. *.a) to project is blocked in lite version.
2012-11-30 01:47 AM
I talkted to Atollic.
here is that what they wrote me!How to link to Static libraries
The settings for included libraries can be found by right-clicking the project and select Properties -> C/C++ Build -> Settings and then select the Tool Settings-tab and then select C Linker -> Libraries. In the settings dialog add the name of the library and not the path. The name is the file name without “lib�? prefix and without the file extension. It is important not to include those parts of the name. This is a GCC convention. For a library-file named “lib qp_cortex-m3_ts.a�? add the name “qp_cortex-m3_ts�?. In the tab “Library Paths�? in the same dialog, you need to set the path to where the library is located. Do not include the name of the library in the path. The included libraries can also be found by right-clicking the project and select C/C++ General and open the Libraries-tab and the Libraries Path-tab.2016-02-03 10:04 AM
Yes as wrote it says same in User guide of Atollic. Although it didnt work for me. I imported ready example from STemWin Lib and it has correct settings and its not anywhere mentioned that is so frustrating.
So lib path is correct but libraries needs certain format i.e. for lib file named ''STemWin522_CM4_GCC.a'' it is added as '':STemWin522_CM4_GCC.a''. Now it works even for Lite version : )2016-02-03 10:27 AM
Becose you forgot to search solution in GCC.
Attolic is GCC based IDE and lib name convetion for GCC is very well documented. It isn't any top secret information. GCC is the mostly known and well documented compiler.2016-02-03 11:06 AM
This thread dates from 2011 when Atollic made the Lite version next to useless, limiting the use of libraries, projetcs and the output of .HEX files. At some later point they realized that this was killing all ability for anyone to evaluate the product, and changed how the limits in the Lite version were realized.
During this entire time frame GNU/GCC for ARM has been freely available, and usable. If you like Eclipse that has also been available.2016-02-03 02:34 PM
so it begs the question....why would anyone pay for it...?
2016-02-03 02:42 PM
You mean Attoilic?
For additional debug futeres, MISRA checker etc. GCC thay can have little bit customized. One think is strange, now they switch off static analizer. This is normal function in eclipse.2016-02-03 08:51 PM
ok, well, if it wasn't for MISRA, you could maybe get by with CooCox.