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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  What i need Libraries for C?

What i need Libraries for C?

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


Posted by Magnefikko   Poland  (38 posts)  [Biography] bio
Date Tue 01 Aug 2006 07:25 AM (UTC)

Amended on Tue 01 Aug 2006 07:30 AM (UTC) by Magnefikko

Message
I see during compilating MUD following error:

Kompilator: Default compiler
Building Makefile: "D:\magnefikko\Elvenbane\Makefile.win"
Wykonywanie make...
make.exe -f "D:\magnefikko\Elvenbane\Makefile.win" all
gcc.exe -c comm.c -o comm.o -I"C:/Dev-Cpp/include"

comm.c: In function `process_output':
comm.c:1024: error: `go_ahead_str' undeclared (first use in this function)
comm.c:1024: error: (Each undeclared identifier is reported only once
comm.c:1024: error: for each function it appears in.)

comm.c: At top level:
comm.c:1206: error: conflicting types for 'write_to_descriptor'
comm.c:859: error: previous implicit declaration of 'write_to_descriptor' was here

comm.c: In function `nanny':
comm.c:1260: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast
comm.c:1267: error: `echo_on_str' undeclared (first use in this function)

comm.c:1515: error: `echo_off_str' undeclared (first use in this function)
comm.c:1582: warning: assignment makes pointer from integer without a cast
comm.c:1605: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast

make.exe: *** [comm.o] Error 1

Wykonanie zakończone


Compilator see frist error here:
write_to_buffer( d, go_ahead_str, 0 );

I hawe Dev-C++ 4.9.9.2 and ZLIB1 libary.

What i need other libary? :-)


[I compilate miniMUD based by "Sword Quest".He is similar to
ROM]

Five'o clock-wisky and tea :-)
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 01 Aug 2006 09:54 AM (UTC)
Message
These are not missing libraries, they are undeclared functions.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Magnefikko   Poland  (38 posts)  [Biography] bio
Date Reply #2 on Tue 01 Aug 2006 10:05 AM (UTC)

Amended on Tue 01 Aug 2006 10:06 AM (UTC) by Magnefikko

Message
This is a errors in file "comm.c"

1024:write_to_buffer( d, go_ahead_str, 0 );

1206:{

1260:if ( strcmp( crypt( argument, ch->pcdata->pwd ), ch->pcdata->pwd ) )

1267:write_to_buffer( d, echo_on_str, 0 );

1515:write_to_buffer( d, echo_off_str, 0 );

1582:pwdnew = crypt( argument, ch->name );

1605:if ( strcmp( crypt( argument, ch->pcdata->pwd ), ch->pcdata->pwd ) )


I do not know well too C.Can adnybody help me? :-)
my comm.c in HTML: http://mayesticgame.w.interia.pl/files/comm_c.html

Five'o clock-wisky and tea :-)
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #3 on Tue 01 Aug 2006 01:05 PM (UTC)
Message
Those are telnet control strings. If you look at Nick's MXP snippet, available from this site, he defines those in one of the files; you would need to follow the snippet's instructions on how to add them.

Did you change anything in the code you have?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Magnefikko   Poland  (38 posts)  [Biography] bio
Date Reply #4 on Tue 01 Aug 2006 02:41 PM (UTC)
Message
As yet, I changed nothing in code affectation Strings.
I tested to compile original code too completely but effects were the same.
Meybe i get you link? :-)

Sword Quest Role Playing by Robert L. Peckham.
Version 27.06.2006
http://celemir.net/~sq/SQ.oct.27.2003.tar.gz

Sometime I had similar problem and it advice change of compiler me.It good idea? :-)

Five'o clock-wisky and tea :-)
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #5 on Tue 01 Aug 2006 02:47 PM (UTC)
Message
I'm sorry, I don't know what a "code affectation string" is.

The code compiled without any problems under Linux. I'll try Cygwin when I get home from work.

Did you look at the MXP snippet I mentioned? It has the control strings you need.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Magnefikko   Poland  (38 posts)  [Biography] bio
Date Reply #6 on Tue 01 Aug 2006 06:03 PM (UTC)

Amended on Tue 01 Aug 2006 06:15 PM (UTC) by Magnefikko

Message
I hawe Windows XP.
I download a MXP snippet but add it to project (in Dev C++) but nothing hapiens.

Edit: Hmm...now my compilator see error here: #include "merc.h" .....

Five'o clock-wisky and tea :-)
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #7 on Tue 01 Aug 2006 06:10 PM (UTC)
Message
You're not supposed to "just add it", there are instructions to follow. Besides you aren't supposed to be adding MXP -- I told you that it has the control strings, not to add in the whole snippet. Let's go back to basics a little bit: do you understand the error message it's giving you?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[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.


17,341 views.

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.

[Home]


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]