PlaneShift
Support => Technical Help: Problems BEFORE entering the game => Topic started by: novice2005 on September 12, 2003, 10:16:45 am
-
hi,
I have an error when I try to compile the file psdatabase.cpp. The message is:
src/server/psdatabase.cpp: In member function `virtual int psDatabase::InsertQuestEvent(char*, int)\':
src/server/psdatabase.cpp:2374: error: ambiguous overload for \'operator+\' in \'questName + spos\'
src/server/psdatabase.cpp:2374: error: candidates are: operator+(const char*, int)
/opt/crystal/include/csutil/csstring.h:484: error: const
csString& csString::operator+(const csString&) const
/opt/crystal/include/csutil/csstring.h:519: error: csString
operator+(const char*, const csString&)
/opt/crystal/include/csutil/csstring.h:525: error: csString
operator+(const csString&, const char*)
What can I do to resolv problem ?
Thanks
novice
-
I forget to give you some informations :). So I try to compile it on a gentoo 1.4.
g++ (GCC) 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice)
Jam 2.5rc3. OS=LINUX. Copyright 1993-2002 Christopher Seiwald.
need something else ?
-
Seem to me like there\'s something wrong with Crystal Space. Make sure that you installed it correctly, and that you have the latest CVS of Crystals Space.
-
I don\'t have that code at the moment so I cannot see exactly where this error is. I can guess that it is adding two csStrings together so you either need to cast the char* as const char* ( I am guessing! ) or use the .Append() function.