old g++ compile error with CVS
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
old g++ compile error with CVS
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
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