Should be noted, Colin, that the files you were having trouble with all appeared to be from the IMC2 client code. This is something that's not actually required for the mud to operate fully. It's an intermud chat protocol. If this isn't something you want to use, there should be a way to disable it from being compiled. Look in the Makefile for how to handle that and it should be fairly easy.
SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
I thought this 1.4a was supposed to have bug fixes in it =p.
Yes, but the people who maintain this stuff don't test it on every conceivable compiler. Usually you can get stuff to compile under normal Unix (eg. Linux) or Cygwin with luck. Also, MS Visual C++ tends to have a few followers. Once you start switching to another compiler you are working in an environment where maybe no-one has tried it, or if they have, the changes haven't been migrated back into the source code. Sorry.
Also check for unistd.h in other include files. You really should have -DWIN32 as part of the makefile, so that it is included for the whole project (or however you do it with this compiler).
Is that exactly how you have it? In that order? With that capitalisation? The #ifdef WIN32 means it certainly should not include unistd.h because that is part of the #else.
Ok, sorry about the vagueness of the last post. Here's what I get once I fix the location problem:
(Mind you I'm using .NET so..)
c:\Smaug\src\webserver.c(28): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\webclient.c(28): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
c:\Smaug\src\router.c(2): error C2143: syntax error : missing '{' before '-'
c:\Smaug\src\router.c(2): error C2059: syntax error : '-'
c:\Smaug\src\router.c(6): error C2018: unknown character '0x40'; unicode identifiers are not supported
c:\Smaug\src\router.c(8): error C2061: syntax error : identifier 'can'
--- Lots more syntax errors and then :---
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stdio.h(371): error C2059: syntax error : ','
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stdio.h(371): error C2059: syntax error : ')'
c:\Smaug\src\router.c(30): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\imc.h(27): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\imc-util.c(29): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
c:\Smaug\src\imc-mercbase.c(38): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\imc.h(27): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\imc-interp.c(26): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\imc-events.c(29): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
c:\Smaug\src\imc-config.c(29): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
c:\Smaug\src\imc.c(29): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
c:\Smaug\src\imc.h(27): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\icec-mercbase.c(29): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\imc.h(27): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
c:\Smaug\src\imc.h(27): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory
I am trying to compile the Updated 1.4a code that I got from: http://www.cs.utk.edu/~london/smaug/winsmaug1.4a.zip
I get a whole lot of errors. I am using VS.NET but, I don't think that should be a problem. Any help would be VERY apreciated.
Oh, also, when I try to edit the files, it says it cannot find the files. It says a file is here:
..\dist\src\mud_prog.c
when really, it should just point to the file:
mud_prog.c
So I imported all the files from the correct location and try to compile. Didn't work at all.
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.