Its not working.
Im trying 2 things:
- creating the lib .a without header. The program give an error then i try to use it, as if i didnt declared it.
- creating the lib .a with header. The i try to compile the lib, it give the following error:
mingw32-g++.exe -I"D:\Arquivos de programas\CodeBlocks\include" -c lib\ssptoolslib.cpp -o lib\ssptoolslib.o
mingw32-g++.exe -L"D:\Arquivos de programas\CodeBlocks\lib" -o lib\ssptoolslib.exe lib\ssptoolslib.o -lmingw32
lib\ssptoolslib.o:ssptoolslib.cpp:(.text+0x12db): undefined reference to `tools::showMessage(std::string)'
lib\ssptoolslib.o:ssptoolslib.cpp:(.text+0x138a): undefined reference to `tools::showMessage(std::string)'
D:\Arquivos de programas\CodeBlocks\lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `
[email protected]'
collect2: ld returned 1 exit status
As you can see the lib im trying to create now is not the above as i said before. If you want i can post the code.
is there any tutorial for newbies about creating static libs?
btw: must i create a header for the .a lib or there is no necessity in it?