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
➜ Compiling Problem with Dev C++
|
Compiling Problem with Dev C++
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| BLaZe
(1 post) Bio
|
| Date
| Sun 30 Mar 2003 07:25 PM (UTC) |
| Message
| When I try to build the exe file I get the following error(I saw this error on a previous post but it was with a diffrent OS and a diffrent compiler)
I am running XP with the DevC++ compiler:
src/comm.c:2856: conflicting types for `gettimeofday'
Here's the complete log:
Compiler: Default compiler
Building Makefile: "C:\starterMUD stock\Makefile.win"
Executing make...
make.exe -f "C:\starterMUD stock\Makefile.win" all
gcc.exe -c src/comm.c -o src/comm.o -I"C:/Dev-Cpp/include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS -O3
In file included from src/comm.c:67:
src/merc.h:2158: warning: `struct timezone' declared inside parameter list
src/merc.h:2158: warning: its scope is only this definition or declaration, which is probably not what you want
src/comm.c: In function `game_loop_unix':
src/comm.c:805: warning: comparison between signed and unsigned
src/comm.c:806: warning: comparison between signed and unsigned
src/comm.c:828: warning: comparison between signed and unsigned
src/comm.c: In function `read_from_descriptor':
src/comm.c:1154: warning: comparison between signed and unsigned
src/comm.c: In function `check_parse_name':
src/comm.c:2366: warning: comparison between signed and unsigned
src/comm.c: At top level:
src/comm.c:2855: warning: `struct timezone' declared inside parameter list
src/comm.c:2856: conflicting types for `gettimeofday'
src/merc.h:2158: previous declaration of `gettimeofday'
make.exe: *** [src/comm.o] Error 1
Execution terminated
Has any1 else using this compiler had this problem or can any1 give me a solution to it? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 02 Apr 2003 06:58 AM (UTC) |
| Message
| The problems with the time.h include file seem to crop up from time to time, excuse the pun.
I'm not sure exactly how to fix this, as I don't have that compiler, but I would look up the help files to find where timezone is declared, and include that file.
For instance, at the top of comm.c, add the line:
#include <sys/time.h>
or whatever the appropriate file is. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Grivo242
(1 post) Bio
|
| Date
| Reply #2 on Thu 24 Apr 2003 04:42 AM (UTC) |
| Message
| I had this problem also, using both DJGPP and whatever comes with Cygwin (not very experienced with Cygwin... just got it to see if it would fix the problem.) I tried including a direct path to time.h as "#include <sys/time.h>"
was already in comm.c... Any more ideas? Blaze did you ever figure out your problem? | | 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,443 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top