Hi,
Just taken the latest SVN, but now can't build CB as get the following error with TinyXML:
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Compiling: base\tinyxml\tinystr.cpp
Compiling: base\tinyxml\tinyxml.cpp
Compiling: base\tinyxml\tinyxmlerror.cpp
Compiling: base\tinyxml\tinyxmlparser.cpp
Linking static library: base\tinyxml\libtxml.a
sorry - this program has been built without plugin support
Process terminated with status 4210922 (0 minute(s), 2 second(s))
Any ideas?
Quote from: idblew on January 22, 2013, 10:05:03 AM
Any ideas?
Use a compatible compiler. The one shipping with C::B should work.
I'm using TDM-GCC 4.7.1 which worked up until the latest SVN updates.
Quote from: idblew on January 22, 2013, 11:33:41 AM
I'm using TDM-GCC 4.7.1 which worked up until the latest SVN updates.
Do a
re-build.
That's what I always do - rebuild using CodeBlcoks.workspace (have also tried just CodeBlocks.cbp)
Enable *full* compiler log, ensure the right compiler is started with the right command (post here if unsure). It works just fine for me, so it must be either a wrong compiler or compiler command on your PC.
See below:
-------------- Clean: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
Cleaned "Code::Blocks wx2.8.x - tinyXML"
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -o2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -iquote.objs\include -I.objs\include -I. -IU:\Development\SVN\wxMSW-2.8.12\include -IU:\Development\SVN\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c U:\Development\SVN\CodeBlocks\src\base\tinyxml\tinystr.cpp -o .objs\base\tinyxml\tinystr.o
mingw32-g++.exe -Wall -o2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -iquote.objs\include -I.objs\include -I. -IU:\Development\SVN\wxMSW-2.8.12\include -IU:\Development\SVN\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c U:\Development\SVN\CodeBlocks\src\base\tinyxml\tinyxml.cpp -o .objs\base\tinyxml\tinyxml.o
mingw32-g++.exe -Wall -o2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -iquote.objs\include -I.objs\include -I. -IU:\Development\SVN\wxMSW-2.8.12\include -IU:\Development\SVN\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c U:\Development\SVN\CodeBlocks\src\base\tinyxml\tinyxmlerror.cpp -o .objs\base\tinyxml\tinyxmlerror.o
mingw32-g++.exe -Wall -o2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -iquote.objs\include -I.objs\include -I. -IU:\Development\SVN\wxMSW-2.8.12\include -IU:\Development\SVN\wxMSW-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c U:\Development\SVN\CodeBlocks\src\base\tinyxml\tinyxmlparser.cpp -o .objs\base\tinyxml\tinyxmlparser.o
mingw32-gcc-ar.exe -r -s base\tinyxml\libtxml.a .objs\base\tinyxml\tinystr.o .objs\base\tinyxml\tinyxml.o .objs\base\tinyxml\tinyxmlerror.o .objs\base\tinyxml\tinyxmlparser.o
sorry - this program has been built without plugin support
Process terminated with status 4210922 (0 minute(s), 2 second(s))
Found it!
Needed to change "Linker for static libs" from mingw32-gcc-ar.exe to ar.exe (?) :-[
Quote from: idblew on January 22, 2013, 01:25:13 PM
Needed to change "Linker for static libs" from mingw32-gcc-ar.exe to ar.exe (?) :-[
You must have done this maybe w/o realising. See here:
http://svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/compilergcc/resources/compilers/options_gcc.xml (http://svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/compilergcc/resources/compilers/options_gcc.xml)
It shows the default is
ar.exe. :-)