old g++ compile error with CVS

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
gandalf
Posts: 157
Joined: August 24th, 2003, 4:15 pm
Location: Sweden

old g++ compile error with CVS

Post by gandalf »

With the current CVS I get this compile error (g++ 2.95.4 and debian linux stable 3.0). At somepoint I will finaly upgrade so I don't have to complain about my crappy compiler and STL libraries.
I made it compile by changing .clear() to ="" If it works? Who knows?

Same change in textbox.cpp line 54.

g++ -O2 -Wall -I. -Isrc -Isrc/tools -Isrc/widgets `sdl-config --cflags` `freetype-config --cflags` -c src/multiplayer.cpp -o src/multiplayer.o
src/multiplayer.cpp: In function `void play_multiplayer(display &, game_data &, config, game_state &, bool = true)':
src/multiplayer.cpp:292: no matching function for call to `basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >::clear ()'
make: *** [src/multiplayer.o] Error 1
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

gandalf,

I have checked in a fix for this.

Personally I would prefer you stay with version 2.9 so you can continue reporting problems with compiling on 2.9 :)

At this stage, I am committed to ensuring it can compile on 2.9

David
ziberpunk

Post by ziberpunk »

Same problem with gcc 2.95.4 in FreeBSD.

Dave, you have corrected problem in multiplayer.cpp but not in textbox.cpp
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

okay problem in textbox.cpp should now be fixed.
Post Reply