Well, my make file reads something like this:
CC=cc
CCFLAGS=-g -I.. -I../hdrs
LDFLAGS= -L/usr/local/lib
CLIBS=-lpthread -Lhspace -lhspace -Lhspace/hsnetwork -lhsnetwork -lstdc++ /lib/libcrypt.a
INSTALL=install
INSTALLDIR=/bin/install -d
CP=/usr/bin/cp
CHMOD=/usr/bin/chmod
INSTALL_LINKS=/usr/bin/ln -s ../src/netmud netmush; /usr/bin/ln -s ../src/info_slave info_slave
I tried making the '-g' to '-g3' like I read here. But that didn't help make a core file. I didn't feel like touching the 'CC=cc' since I'm not too familiar with makefiles.
But I tried to debug the game through the gdb. So I goto the pennmush/src directory and type 'gdb ../src/netmud' which brings me into the gdb program. I type 'run' and I get this:
(gdb) run
Starting program: /home/user/pennmush/src/netmud.exe
ERROR: Usage: /home/user/pennmush/src/netmud config_file error_log_file
Program exited with code 02.
So, what am I doing wrong?
CC=cc
CCFLAGS=-g -I.. -I../hdrs
LDFLAGS= -L/usr/local/lib
CLIBS=-lpthread -Lhspace -lhspace -Lhspace/hsnetwork -lhsnetwork -lstdc++ /lib/libcrypt.a
INSTALL=install
INSTALLDIR=/bin/install -d
CP=/usr/bin/cp
CHMOD=/usr/bin/chmod
INSTALL_LINKS=/usr/bin/ln -s ../src/netmud netmush; /usr/bin/ln -s ../src/info_slave info_slave
I tried making the '-g' to '-g3' like I read here. But that didn't help make a core file. I didn't feel like touching the 'CC=cc' since I'm not too familiar with makefiles.
But I tried to debug the game through the gdb. So I goto the pennmush/src directory and type 'gdb ../src/netmud' which brings me into the gdb program. I type 'run' and I get this:
(gdb) run
Starting program: /home/user/pennmush/src/netmud.exe
ERROR: Usage: /home/user/pennmush/src/netmud config_file error_log_file
Program exited with code 02.
So, what am I doing wrong?