Compile errors on windows xp using MSVC 6.0
Sean Stanek
vulture at cs.iastate.edu
Sat Oct 13 14:37:46 EDT 2007
> src\fileio.c(47) : error C2065: 'O_CREAT' : undeclared identifier
> src\fileio.c(47) : error C2065: 'O_TRUNC' : undeclared identifier
> src\fileio.c(47) : error C2065: 'O_APPEND' : undeclared identifier
> src\fileio.c(49) : error C2065: 'O_RDONLY' : undeclared identifier
> src\motd.c(157) : error C2079: 'sb' uses undefined struct 'stat'
> src\motd.c(183) : error C2224: left of '.st_mtime' must have
> struct/union type
> src\motd.c(183) : error C2198: 'localtime' : too few actual parameters
Looks like some problem with include files... if it's not a misconfigured
configure, should add these lines to either the global .h file (setup.h or
w/e?) or the top of the files that have the errors:
#include <fcntl.h>
#include <sys/stat.h>
> src\lex.yy.c(12) : fatal error C1083: Cannot open include file:
> 'unistd.h': No such file or directory
My vc6 has this file, but it is zero bytes, so you can probably make a
unistd.h file in your vc98/include directory that is zero bytes, or remove
the #include altogether.
> src\s_bsd_win32.c(26) : fatal error C1083: Cannot open include file:
> 'iphlpapi.h': No such file or directory
This is part of the MS Platform SDK. You'll have to install that from
microsoft.com and update your include paths to point to the SDK include
path. You'll probably also have to update your library paths to include
the Platform SDK's LIB path.
Sean
More information about the hybrid
mailing list