Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#10140) generator.a linker error on OSX
Home

[Freeciv-Dev] Re: (PR#10140) generator.a linker error on OSX

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bh@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#10140) generator.a linker error on OSX
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Sep 2004 20:25:55 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10140 >

Benoit Hudson wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=10140 >
> 
> Strangely, if all three symbols in height_map.c are uninitialized, then I get 
> a link error.  If any 
> combination of the three symbols is initialized, everything is fine.
> 
> This patch works around that weirdness by initializing height_map to zero.  
> Which it should 
> be intialized to anyway, according to the C standard.

I got a similar linker error when cross-compiling for win32.  However 
when I ran "make clean && make" it went away.

First, see if a make clean solves the problem.

If it doesn't I suspect this is another case where we have to list the 
.a files multiple times.  Which linking is it that fails?  civserver? 
civmanual?

jason




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