On Sat, 10 Oct 2009, dave perry wrote:

> With today's SimGear CVS, I am getting the following compile error
> Making all in props
> make[3]: Entering directory `/home/dad/source-osg/SimGear/simgear/props'
> g++  -g -O2 -D_REENTRANT -lOpenThreads  -o props_test props_test.o
> libsgprops.a ../../simgear/xml/libsgxml.a ../../simgear/misc/libsgmisc.a
> ../../simgear/debug/libsgdebug.a ../../simgear/structure/libsgstructure.a
> props_test.o: In function `SGAtomic::operator--()':
> /home/dad/source-osg/SimGear/simgear/props/../../simgear/structure/SGAtomic.hxx:60:
> undefined reference to `__sync_sub_and_fetch_4'

Hi,

This problem has been discussed on IRC but as far as I recall we didn't 
reach a certain solution. Can you try setting the target machine 
architecture? I use -march=core2 (appropriate for my box) and have not 
had this problem (but I have gcc 4.3.4).

It seems possible that these intrinsic functions are only available when 
the target hardware can support them in a reasonable way. IIRC some of the 
basic atomic read-write operations were first introduced in the i486 while 
the default target for gcc is probably i386.

Cheers,

Anders
-- 
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://www.gidenstam.org/FlightGear/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to