Author Topic: TinyXML Build Error  (Read 12728 times)

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
TinyXML Build Error
« 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: TinyXML Build Error
« Reply #1 on: January 22, 2013, 11:16:33 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: TinyXML Build Error
« Reply #2 on: January 22, 2013, 11:33:41 am »
I'm using TDM-GCC 4.7.1 which worked up until the latest SVN updates.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: TinyXML Build Error
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: TinyXML Build Error
« Reply #4 on: January 22, 2013, 12:42:12 pm »
That's what I always do - rebuild using CodeBlcoks.workspace (have also tried just CodeBlocks.cbp)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: TinyXML Build Error
« Reply #5 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: TinyXML Build Error
« Reply #6 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))

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: TinyXML Build Error
« Reply #7 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 (?)  :-[

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: TinyXML Build Error
« Reply #8 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

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