Re: MSVC 5.0 Compile

From: Bil Simser (bil.simser@SHAW.WAVE.CA)
Date: 03/17/98


I've successfully compiled Circle under MSVC 5. Here's how you correctly get
rid of the problem:

In sysdep.h line 121:

#ifdef CIRCLE_WINDOWS
# include <sys\types.h>
# include <sys\stat.h>            /* add this line here to resolve the _stat
structure needed for act.other.c */
#endif

In act.other.c line 728:

change:
struct stat fbuf ;
to:
struct _stat fbuf ;

line 764:
change:
if (stat(filename, &fbuf) < 0) {
to:
if (_stat(filename, &fbuf) < 0) {

Clean compile! Works great.

-Bil

-----Original Message-----
From: Paul Siegel <pmsie@CONNCOLL.EDU>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Tuesday, March 17, 1998 3:59 PM
Subject:  MSVC 5.0 Compile


>Hi everyone -
>
>I've been compiling Circle 3.0 (where do I find the build number?) in Win95
Microsoft Visual C++ 5.0, and have had very few problems, excepting this
one.  I created a workspace and copied the pertienent info from the makefile
into the appropriate spaces, so it compiles but with these two errors:
>
>error C2079: 'fbuf' uses undefined struct 'stat'
>error C2224: left of '.st_size' must have struct/union type
>
>I've also compiled the very same code on a Linux box, and I get no such
errors.  Yet, I think the errors make sense, because I can't find the struct
labeled "stat" anywhere.  Any thoughts?
>
>Paul
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST