News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Plugins Compile Error

Started by idblew, March 28, 2009, 05:50:23 PM

Previous topic - Next topic

idblew

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?

Jenna

No problems here.
win2k, svn r 5489

idblew

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.

ollydbg

No problem to build Code snippet. (Windows XP )
But I can't find byogames :(.

By the way

[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?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

stahta01

Quote from: 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.

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

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

ollydbg

I forgot to mention, I use TDM-MinGW 4.3.3 :D.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

idblew

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

Jenna

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

idblew

Just tested SVN r5490

Confirmed working - thanks Jens