Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2002:
[Freeciv-Dev] Re: compile on windows and possible bug with map size
Home

[Freeciv-Dev] Re: compile on windows and possible bug with map size

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Stock <cstock@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: compile on windows and possible bug with map size
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Mon, 24 Jun 2002 12:04:36 +0200

On Mon, Jun 24, 2002 at 10:57:39AM +1000, Christian Stock wrote:
> Hi,
> 
> I'm trying to compile the cvs freeciv version for win (from yesterday) on 
> my home box (which doesn't have linux anymore, because I ran out of 
> diskspace and was using linux for work only).
> 
> The reason why I want to compile it is because the win cvs (and the 1.12.0 
> version) crashes on a custom made map. I basically doubled the large earth 
> map (so it's 320x180 now). I need that sort of detail and size for a 
> scenario I'm making. It seems to be too big, although in the code it looks 
> like maps can be as big as they want to be, so I suspect a bug in the win 
> client. So I wanted to fix it :)
> 
> I'm using MSVC 6.0, and I got really close compiling the server yesterday. 
> First off, since I'm using MSVC, I was stuck with the autogen.sh. Although 
> I have lot's of programming experience, I'm not very good when it come to 
> setting things up. I know that I need a config.h and I have worked out a 
> few things on what I need to define and what not, but I have a few 
> problems. Can someone maybe post a working config.h for a win system? And 
> where do I include it, ie where do I define HAVE_CONFIG_H? I defined the 
> win variables in the individual header files which is of course not ideal 
> at all, but it worked to get most stuff compiled for now...
> 
> my linking still has 2 problems. When I define NATIVE_WIN (which assume I 
> should), the code uses _beginthreadex, which is undefined. If I include the 
> libraries libcmt.lib or msvcrt.lib, I get conflicts, so what do i do?

I can't comment on the above.

> also, S_ISREG is undefined. It doesn't seem to be windows related, so how 
> do i fix that?

You mean you have a {f,l,}stat function and not the S_ISREG define? 
Odd.

Nevertheless if you know the windows way to identify a regular file
(== not (directory or symlink or char-device or block-device or pipe
or whatever)) please post a patch.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "The very concept of PNP is a lovely dream that simply does not translate to
  reality. The confusion of manually doing stuff is nothing compared to the
  confusion of computers trying to do stuff and getting it wrong, which they
  gleefully do with great enthusiasm." 
    -- Jinx Tigr in the SDM


[Prev in Thread] Current Thread [Next in Thread]