PlaneShift

Support => Technical Help: Problems BEFORE entering the game => Topic started by: novice2005 on September 12, 2003, 10:16:45 am

Title: compile error on src/server/psdatabase.cpp
Post 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
Title:
Post by: novice2005 on September 12, 2003, 11:20:46 am
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 ?
Title: CS problem
Post by: dark_chicken on September 12, 2003, 02:55:29 pm
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.
Title:
Post by: acraig on September 13, 2003, 03:29:24 am
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.