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
➜ ROM
➜ Compiling the server
➜ Quickmud errors with DJGPP
Quickmud errors with DJGPP
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Xander
(2 posts) Bio
|
Date
| Sat 29 Nov 2003 01:33 AM (UTC) |
Message
| Here's a transcription.
_________________________
C:\QUICK\SRC>make
gcc -c -Wall -O -g comm.c
In file included from comm.c:62:
merc.h:2358: warning: conflicting types for built-in function 'logf'
comm.c:208: error: conflicting types for 'gettimeofday'
c:/djgpp/include/time.h:86: error: previous declaration of 'gettimeofday'
comm.c: In function 'read_from_descriptor':
comm.c:1162: error: 'EWOULDBLOCK' undeclared (first use in this function)
comm.c:1162: error: (Each undeclared identifier is reported only once
comm.c:1162: error: for each function it appears in.)
make.exe: *** [comm.o] Error 1
___________________________
I am so completely new at this, and I really do not understand most of it...I'd be grateful if I could receieve assistance!
Thanks!
xander
| Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 29 Nov 2003 10:42 PM (UTC) |
Message
| It is hard to tell, you haven't told us much, like which version of ROM you have, and what compiler you are using.
However I guess from the C: in your message that you are using Cygwin under Windows.
However the directory C:\QUICK\SRC> is a bit unusual.
Normally under Cygwin you should have a "home" directory, so the prompt would be more like:
/home/xander
I suggest running the Cygwin "bash" shell and compiling from within that.
Have you read this page? ...
http://www.gammon.com.au/smaug/howtocompile.htm |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Xander
(2 posts) Bio
|
Date
| Reply #2 on Sun 30 Nov 2003 02:29 AM (UTC) |
Message
| I'm using djgpp (also a compiler) since I am unable to get cygwin's make to install on my computer, and got increasingly frustrated with installing make on my comp, so I got DJGPP.
Using : QuickMud
ROM 2.4b6 beta version of Merc 2.1 base code.
** OLC 1.81
** Lope's Color 2.0
** Erwin's Copyover
** Erwin's Noteboard
** Color Login
Thanks for trying to help!!! the folks at kyndig.com never replied :P
x | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #3 on Sun 30 Nov 2003 11:50 AM (UTC) |
Message
|
Quote:
merc.h:2358: warning: conflicting types for built-in function 'logf'
comm.c:208: error: conflicting types for 'gettimeofday'
c:/djgpp/include/time.h:86: error: previous declaration of 'gettimeofday'
The logf warning is because newer compilers are including the math headers globally, and logf is one of the math functions. You'll need to renam the logf function as something else. As I recall, it's only used by the copyover code so it shouldn't take long to fix.
gettimeofday, comment out line 208, because your time.h file already declares the function for you and comm.c is repeating it with an incorrect type.
As for the last bit with EWOULDBLOCK, try including errno.h at the top of your file where the other includes are. I think that's what has the information it's not able to find. | 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.
14,973 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top