Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ PennMUSH ➜ Compiling the server ➜ Debugging Problems with Cygwin

Debugging Problems with Cygwin

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Hubb   (8 posts)  Bio
Date Thu 08 Apr 2004 08:22 AM (UTC)

Amended on Thu 08 Apr 2004 08:24 AM (UTC) by Hubb

Message
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?
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 08 Apr 2004 09:04 AM (UTC)
Message
You need to specify the arguments to PennMUSH (the config file and error file) in the run command, eg.

(gdb) run mush.cnf error.log


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Hubb   (8 posts)  Bio
Date Reply #2 on Thu 08 Apr 2004 04:32 PM (UTC)
Message
Thank you. I ran into another problem that my 'netmud' wasn't in the same directory as all the files it needed to configure the mush (alias, panic, etc). So I just temporarily moved my netmud into the game directory. And it worked.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,432 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.