Author Topic: Plugins Compile Error  (Read 9338 times)

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Plugins Compile Error
« 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?
« Last Edit: March 28, 2009, 06:05:45 pm by idblew »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Plugins Compile Error
« Reply #1 on: March 28, 2009, 08:39:54 pm »
No problems here.
win2k, svn r 5489

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Plugins Compile Error
« Reply #2 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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Plugins Compile Error
« Reply #3 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?
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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Plugins Compile Error
« Reply #4 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

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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Plugins Compile Error
« Reply #5 on: March 29, 2009, 05:35:44 am »
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.

Offline idblew

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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Plugins Compile Error
« Reply #7 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).

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Plugins Compile Error
« Reply #8 on: March 29, 2009, 12:53:41 pm »
Just tested SVN r5490

Confirmed working - thanks Jens