On Sun, 10 Apr 2011 03:29:52 +0200, Csaba wrote in message 
<BANLkTi=YrZ+9Ey0zgR4o6TU9EkANdwM==q...@mail.gmail.com>:

> On Sun, Apr 10, 2011 at 2:52 AM, Arnt Karlsen <a...@c2i.net> wrote:
> >
> > ..was my last successful OSG-build, OSG-2.9.9 and OSG-2.9.11
> > now also fails to build with c++-4.5.2-8, I'm using:
> > http://www.gitorious.org/fg/fgmeta/blobs/raw/master/download_and_compile.sh
> > (and my own "system-OSG" version of it) as adviced in:
> > http://wiki.flightgear.org/index.php?title=Scripted_Compilation_on_Linux_Debian/Ubuntu
> >
> >> > and
> >> > compilation_log.2011-04-06+04:33:17 with c++-4.6.0-2.
> >
> > ..both plib and SimGear builds ok on c++-4.6.0-2 and my last
> > OSG, and on system OSG (2.9.11-1), but fgfs build fails with:
> > make[3]: Entering directory
> > `/home/arnt/FG-git/fgfs/flightgear/src/FDM' g++ -DHAVE_CONFIG_H -I.
> > -I../../src/Include -I../.. -I../../src -I../../src/FDM/JSBSim
> >  -I/home/arnt/FG-git/install/simgear/include
> > -I/home/arnt/FG-git/install/plib/include -I/usr/local/include  -g
> > -O2 -Wall -I/home/arnt/FG-git/install/simgear -D_REENTRANT -MT
> > flightProperties.o -MD -MP -MF .deps/flightProperties.Tpo -c -o
> > flightProperties.o flightProperties.cxx In file included from
> > flightProperties.cxx:23:0: ../../src/FDM/flightProperties.hxx:48:44:
> > error: ‘NULL’ was not declared in this scope
> >
> > ..line 47-49 in ../../src/FDM/flightProperties.hxx:
> > public:
> >  FlightProperties(SGPropertyNode* aRoot = NULL);
> >  ~FlightProperties();
> 
> Indeed, NULL is a C thing, in C++ we should be using 0.

..0 works here. :o)

> Reportedly fixing this single occurrence is enough to get FG to
> compile, presumably somebody #defines NULL for the others (because
> there are tons of others).

..yup, I now hit a linker error that warrants its own post. 


-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to