[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  PennMUSH
. -> [Folder]  Compiling the server
. . -> [Subject]  Debugging Problems with Cygwin

Debugging Problems with Cygwin

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

Posted by Hubb   (8 posts)  [Biography] bio
Date Thu 08 Apr 2004 08:22 AM (UTC)

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

Well, my make file reads something like this:

CCFLAGS=-g -I.. -I../hdrs
LDFLAGS= -L/usr/local/lib
CLIBS=-lpthread -Lhspace -lhspace -Lhspace/hsnetwork -lhsnetwork -lstdc++ /lib/libcrypt.a
INSTALLDIR=/bin/install -d
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?
[Go to top] top

Posted by Nick Gammon   Australia  (23,001 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 08 Apr 2004 09:04 AM (UTC)
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
[Go to top] top

Posted by Hubb   (8 posts)  [Biography] bio
Date Reply #2 on Thu 08 Apr 2004 04:32 PM (UTC)
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.
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]