User forums > Help

Really Weird Code::Blocks Compiling Error

<< < (2/4) > >>

Jenna:

--- Quote from: Wander on February 05, 2011, 04:46:25 pm ---So you mean post all of the errors?

--- End quote ---
Not necessary all errors, but the full commandline sent to the compiler.
And of course the OS, the compiler (and version) and the C::B version.

Wander:
Alright, so where do I find the command line. After turning on the command line thing in the settings nothing showed up extra when I compiled. I tried to find it in View but to no avail.

Jenna:
If you really have turned on full commandline logging, you see it in the "Build log".

And please use code-tags to display code and logs or similar content !

Wander:

--- Code: ---[100.0%] mingw32-gcc-4.4.0.exe -LC:\SFML-1.6\lib  -o BinObj\bin\Debug\tGUI.exe BinObj\obj\Debug\tGUI.o BinObj\obj\Debug\main.o   -lmingw32 -lsfml-system -lsfml-window -lsfml-graphics -static-libgcc 
f:/mingw 4.4/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
--- End code ---

Everything is all errors like I showed you earlier. Errors involving the SFML API and some other stuff I have never heard of such as:


--- Code: ---tGUI.o: In function `_tcf_0':
   undefined reference to `std::ios_base::Init::~Init()'
tGUI.o: In function `_static_initialization_and_destruction_0':
   undefined reference to `std::ios_base::Init::Init()'
--- End code ---

Jenna:
If I see it correctly, you use c++-object files/libraries and try to link them with gcc. That does not work.

Using g++.exe or (most likely) mingw32-g++-4.4.0.exe in your case as linker executable.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version