Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: idblew on March 28, 2009, 05:50:23 pm

Title: Plugins Compile Error
Post by: idblew on March 28, 2009, 05:50:23 pm
The compile of byogames and codesnippets (under Windows) has started failing since revision 5486

I believe this is down to the incorrect removal of the search path "..\..\..\include\tinyxml"

Can anyone confirm?
Title: Re: Plugins Compile Error
Post by: Jenna on March 28, 2009, 08:39:54 pm
No problems here.
win2k, svn r 5489
Title: Re: Plugins Compile Error
Post by: idblew on March 28, 2009, 09:47:14 pm
Just tried again building just byogames and get the same error:

..\..\..\include\tinyxml\tinyxml.h
Line 52
tinystr.h: No such file or directory

Am I missing something obvious?

Windows Vista
GCC 3.4.5

PS: If I add "..\..\..\include\tinyxml" to the search paths, it compiles fine.
Title: Re: Plugins Compile Error
Post by: ollydbg on March 29, 2009, 04:40:29 am
No problem to build Code snippet. (Windows XP )
But I can't find byogames :(.

By the way

Code
[100.0%] Running project post-build steps
update.bat

After build, the script above will run automatically, so, we don't need to run update.dat manually?
Title: Re: Plugins Compile Error
Post by: stahta01 on March 29, 2009, 05:30:31 am
Just tried again building just byogames and get the same error:

..\..\..\include\tinyxml\tinyxml.h
Line 52
tinystr.h: No such file or directory

Am I missing something obvious?

Windows Vista
GCC 3.4.5

PS: If I add "..\..\..\include\tinyxml" to the search paths, it compiles fine.

I am was getting the same error; I have not checked to see if the problem went away.
Tim S

Title: Re: Plugins Compile Error
Post by: ollydbg on March 29, 2009, 05:35:44 am
I forgot to mention, I use TDM-MinGW 4.3.3 :D.
Title: Re: Plugins Compile Error
Post by: idblew on March 29, 2009, 12:41:55 pm
The error stems from tinyxml.h (see code snippet below):

#ifdef TIXML_USE_STL
   #include <string>
    #include <iostream>
   #include <sstream>
   #define TIXML_STRING      std::string
#else
   #include "tinystr.h"
   #define TIXML_STRING      TiXmlString
#endif

The affected plugins are:

src\plugins\contrib\byogames\byogames.cbp
src\plugins\contrib\codesnippets\codesnippets.cbp
Title: Re: Plugins Compile Error
Post by: Jenna on March 29, 2009, 12:46:43 pm
I just tested it with C::B's 8.02 release and the included gcc 3.4.5 and indeed I get the errors.

There must be a change in gcc's strategy for searching include-files between 3.x and 4.x.

I readded the search-paths in trunk (svn r5490).
Title: Re: Plugins Compile Error
Post by: idblew on March 29, 2009, 12:53:41 pm
Just tested SVN r5490

Confirmed working - thanks Jens