User forums > Embedded development
How can I create a static library in Code::Blocks?
Freem:
This is not the full compiler log. Please read this http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F for instructions about how to enable it.
xor_NTG:
Ok. I did exactly as they said on that site and I have that compiler build log:
--- Code: ----------------- Build: Debug in Test_VECTOR_INT ---------------
mingw32-g++.exe -o bin\Debug\Test_VECTOR_INT.exe obj\Debug\main.o -lvector_int
obj\Debug\main.o: In function `main':
C:/CODE_BLOCKS_PROJECTS/Test_VECTOR_INT/main.cpp:9: undefined reference to `vector_int::citire()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
--- End code ---
MortenMacFly:
--- Quote from: xor_NTG on October 14, 2012, 07:10:15 pm ---Ok. I did exactly as they said on that site and I have that compiler build log:
--- Code: ---C:/CODE_BLOCKS_PROJECTS/Test_VECTOR_INT/main.cpp:9: undefined reference to `vector_int::citire()'
collect2: ld returned 1 exit status
--- End code ---
--- End quote ---
Without access to the SDK nobody will be able to help you. We can only guess and this will lead to nowhere. Please insp3ct the SDK's documentation or ask the developers of this library how to use it with MinGW.
xor_NTG:
I've created this library.
cacb:
Your question is really unrelated to C::B.It has to do with understanding C++ and the difference between C++ and C.
In C++, a struct is the same as a class (except all is by default public). Look it up in a C++ book. You can put C++ classes in libraries, no problem, but it isn't related to C::B
Navigation
[0] Message Index
[*] Previous page
Go to full version