Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: idblew on January 22, 2013, 10:05:03 am

Title: TinyXML Build Error
Post by: idblew on January 22, 2013, 10:05:03 am
Hi,

Just taken the latest SVN, but now can't build CB as get the following error with TinyXML:

Code
-------------- 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?
Title: Re: TinyXML Build Error
Post by: MortenMacFly on January 22, 2013, 11:16:33 am
Any ideas?
Use a compatible compiler. The one shipping with C::B should work.
Title: Re: TinyXML Build Error
Post by: 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.
Title: Re: TinyXML Build Error
Post by: MortenMacFly on January 22, 2013, 11:36:00 am
I'm using TDM-GCC 4.7.1 which worked up until the latest SVN updates.
Do a re-build.
Title: Re: TinyXML Build Error
Post by: idblew on January 22, 2013, 12:42:12 pm
That's what I always do - rebuild using CodeBlcoks.workspace (have also tried just CodeBlocks.cbp)
Title: Re: TinyXML Build Error
Post by: MortenMacFly on January 22, 2013, 01:12:24 pm
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.
Title: Re: TinyXML Build Error
Post by: idblew on January 22, 2013, 01:22:50 pm
See below:

Code
-------------- 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))
Title: Re: TinyXML Build Error
Post by: idblew on January 22, 2013, 01:25:13 pm
Found it!

Needed to change "Linker for static libs" from mingw32-gcc-ar.exe to ar.exe (?)  :-[
Title: Re: TinyXML Build Error
Post by: MortenMacFly on January 22, 2013, 02:33:02 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. :-)