News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compile error rev3248 in DetermineExecutablePath()

Started by TheTuxKeeper, November 21, 2006, 06:44:11 AM

Previous topic - Next topic

TheTuxKeeper

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) :)
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
Nightly builds for openSUSE

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

workwind

Quote from: thomas on November 21, 2006, 08:45:56 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>


dje

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

workwind

Revision 2350 fixes the problem for me  :D, thanks thomas!

afb

And for dynamic strings, you wrap them in something like: wxString(string,wxConvUTF8)