News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

TinyXML Build Error

Started by idblew, January 22, 2013, 10:05:03 AM

Previous topic - Next topic

idblew

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?

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

idblew

I'm using TDM-GCC 4.7.1 which worked up until the latest SVN updates.

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

idblew

That's what I always do - rebuild using CodeBlcoks.workspace (have also tried just CodeBlocks.cbp)

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

idblew

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))

idblew

Found it!

Needed to change "Linker for static libs" from mingw32-gcc-ar.exe to ar.exe (?)  :-[

MortenMacFly

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

It shows the default is ar.exe. :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]