User forums > Using Code::Blocks

Error building CB SVN

(1/4) > >>

parasito:
Hi all!!!

Today I tested new SVN repository for CB, but I had the same problem than CVS version:

./configmanager.h: In member function 'void ConfigManager::Read(const wxString&, ConfigManagerContainer::SerializableObjectMap*)':
./configmanager.h:199: error: no matching function for call to 'TiXmlHandle::FirstChild(wxString&)'
./tinyxml/tinyxml.h:1458: note: candidates are: TiXmlHandle TiXmlHandle::FirstChild() const
./tinyxml/tinyxml.h:1460: note:                 TiXmlHandle TiXmlHandle::FirstChild(const char*) const
make[2]: *** [sdk.h.gch] Error 1

I tried to fix it by myself but it was impossible.  Is anybody working in Linux SVN version?

Thanks

Ceniza:
Why do I think the compiler has something to do with it?

Check your g++ --version and try again with a more recent version.

parasito:
Ceniza, thanks for your answer.

g++ --version
g++ (GCC) 4.0.3 20051023 (prerelease) (Debian 4.0.2-3)

I don't think g++ version to be the key of the problem  :(

Has anybody suscessfully built svn code in linux?

Thanks in advance

Jorg:
Correct me if I am wrong, but this error could be fixed by adding .c_str() to the tinyXML call.

./configmanager.h:199: error: no matching function for call to 'TiXmlHandle::FirstChild(wxString&)'

the wxString by ref is not possible, buyt when you add .c_str() it will convert to char *. Visual Studio wrongfully does this for you, a very dangerous assumption.

./tinyxml/tinyxml.h:1460: note:                 TiXmlHandle TiXmlHandle::FirstChild(const char*) const

- Jorgen

parasito:
That doesn't work. I tried that before. The truth is I'm lost with it  :(

Navigation

[0] Message Index

[#] Next page

Go to full version