Author Topic: compile error on src/server/psdatabase.cpp  (Read 669 times)

novice2005

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
compile error on src/server/psdatabase.cpp
« 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

novice2005

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #1 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 ?

dark_chicken

  • Traveller
  • *
  • Posts: 18
    • View Profile
CS problem
« Reply #2 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.
Ingame character is Jiuna. Say hello and give me all your crystals if you see me!

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #3 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.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"