Author Topic: Compile error rev3248 in DetermineExecutablePath()  (Read 5762 times)

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Compile error rev3248 in DetermineExecutablePath()
« 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
Nightly builds for openSUSE

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compile error rev3248 in DetermineExecutablePath()
« Reply #1 on: November 21, 2006, 08:45:56 am »
Seems I've got tremor, an extra ")", fixed. :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline workwind

  • Single posting newcomer
  • *
  • Posts: 8
Re: Compile error rev3248 in DetermineExecutablePath()
« Reply #2 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>


Offline dje

  • Lives here!
  • ****
  • Posts: 682
Re: Compile error rev3248 in DetermineExecutablePath()
« Reply #3 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

Offline workwind

  • Single posting newcomer
  • *
  • Posts: 8
Re: Compile error rev3248 in DetermineExecutablePath()
« Reply #4 on: November 21, 2006, 09:16:33 am »
Revision 2350 fixes the problem for me  :D, thanks thomas!

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Compile error rev3248 in DetermineExecutablePath()
« Reply #5 on: November 21, 2006, 09:17:10 am »
And for dynamic strings, you wrap them in something like: wxString(string,wxConvUTF8)
« Last Edit: November 21, 2006, 09:19:15 am by afb »