Hi there,
I got a problem with compiling gccg on my machine (Ubuntu GNOME 14.04). There's a reference to the lpthread lib missing in the LIBS_TEXT line of the makefile.
If I use (line 39)
LIBS_TEXT=
$(SDLCONFIG) --libs-lSDL_net -lSDL_mixer $(LIBS_SQUIRREL)
then I get
[...]
g++ -o ccg_text_client tmp/client.o tmp/parser_libcards.o tmp/parser_libnet.o tmp/parser.o tmp/data_filedb.o tmp/parser_lib.o tmp/tools.o tmp/carddata.o tmp/xml_parser.o tmp/security.o tmp/data.o tmp/localization.o tmp/driver.o tmp/game.o tmp/interpreter.o tmp/SDL_rotozoom.o tmp/text-driver.o tmp/game-text-version.osdl-config --libs-lSDL_net -lSDL_mixer
/usr/bin/ld: tmp/text-driver.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [ccg_text_client] Fehler 1
Using
LIBS_TEXT=
$(SDLCONFIG) --libs-lSDL_net -lSDL_mixer -lpthread $(LIBS_SQUIRREL)
solves the problem. Probably it's best to change the makefile, but I'm new to linux, so I leave that completely up to you.
By the way, many thx for creating gccg!