Code::Blocks Forums

User forums => Help => Topic started by: TheTuxKeeper on November 21, 2006, 06:44:11 am

Title: Compile error rev3248 in DetermineExecutablePath()
Post by: TheTuxKeeper on November 21, 2006, 06:44:11 am
I wanted to build cb on suse 10.1 and got this error. I created a bug report (https://developer.berlios.de/bugs/?func=detailbug&bug_id=9520&group_id=5358) :)
Code
 g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/scripting/include -I../../src/sdk/scripting/sqplus -I../../src/sdk/wxFlatNotebook/include -I../../src/sdk/propgrid/include -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT configmanager.lo -MD -MP -MF .deps/configmanager.Tpo -c configmanager.cpp  -fPIC -DPIC -o .libs/configmanager.o
configmanager.cpp: In function 'wxString<unnamed>::DetermineExecutablePath()':
configmanager.cpp:71: error: expected initializer before ')' token
configmanager.cpp:72: error: 'c' was not declared in this scope
configmanager.cpp:75: error: conversion from 'char*' to 'const wxString' is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
make[4]: *** [configmanager.lo] Fehler 1
Title: Re: Compile error rev3248 in DetermineExecutablePath()
Post by: thomas on November 21, 2006, 08:45:56 am
Seems I've got tremor, an extra ")", fixed. :)
Title: Re: Compile error rev3248 in DetermineExecutablePath()
Post by: workwind on November 21, 2006, 08:56:23 am
Seems I've got tremor, an extra ")", fixed. :)
I think, that was only one error....  :?
I still get a compiler error in revision 3249:

configmanager.cpp: In function 'wxString<unnamed>::DetermineExecutablePath()':
configmanager.cpp:75: error: conversion from 'char*' to 'const wxString' is ambiguous
/usr/local/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/local/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>

Title: Re: Compile error rev3248 in DetermineExecutablePath()
Post by: dje on November 21, 2006, 09:08:59 am
Hi !

To deal with this kind of error, I write my string from
"my string"
to
_("my string")

This way, the compiler stops complaining.

Dje
Title: Re: Compile error rev3248 in DetermineExecutablePath()
Post by: workwind on November 21, 2006, 09:16:33 am
Revision 2350 fixes the problem for me  :D, thanks thomas!
Title: Re: Compile error rev3248 in DetermineExecutablePath()
Post by: afb on November 21, 2006, 09:17:10 am
And for dynamic strings, you wrap them in something like: wxString(string,wxConvUTF8)