On Wednesday 31 October 2007 19:40, Durk Talsma wrote:
> On Wednesday 31 October 2007 20:12, leee wrote:
> > Hi all,
> >
> > I'm getting the following error when trying to compile Atlas (from
> > cvs)
> >
> > Preferences.cxx: In member function ‘bool
> > Preferences::_loadPreferences(int, char**)’:
> > Preferences.cxx:346: error: ‘optreset’ was not declared in this
> > scope
> >
> > Any ideas anyone?
>
> This is a quote from a recent post to the Atlas developers list.  I
> tried it this morning, and it seems to work well.
>
> FWIW, I spent the better part of the weekend trying to get Atlas to
> build on cygwin again. That works now in my local copy, but I haven't
> committed those changes yet. Probably after FSWeekend....
>
> ===============================================
> (1) The compile error because of 'optreset' is due to different
>     versions of the getopt library.  I'm on OS X, which uses a
>     different version than you have on Linux, apparently.  I think
> if, in _loadPreferences(), you replace:
>
>       optreset = 1;
>       optind = 1;
>
>     by
>
>       optind = 0;
>
>     it should compile.  I think.
> ===============================================
>
> Cheers,
> Durk

Thanks for that Durk,

I've subscribed to the Atlas list but haven't received the confirmation 
yet.  I should have thought of looking in the list archives - doh.

Anyway, removing the optreset line and amending the optind line gets me 
further but then it fails with:

g++  -g -O2 -DFGBASE_DIR='"NONE/lib/FlightGear"'  -L/usr/X11R6/lib 
-L/usr/local//lib -o 
Atlas  Atlas.o FlightTrack.o LoadPng.o LoadJpg.o MapBrowser.o Output.o 
OutputGL.o Overlays.o Projection.o Tile.o TileManager.o fg_mkdir.o 
Search.o 
Preferences.o -lsgmagvar -lsgtiming -lsgmisc -lsgio -lsgserial -lsgdebug 
-lsgbucket -lsgxml -lplibsg -lplibpu -lplibul -lplibfnt -lplibnet -lglut -lGLU 
-lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lpthread -lm  -lpng -lz -lpthread 
-ljpeg -lplibul -lm 
/usr/local//lib/libsgtiming.a(timezone.o): In function 
`SGTimeZoneContainer::SGTimeZoneContainer(char const*)':
timezone.cxx:(.text+0xb8a): undefined reference to 
`sg_exception::sg_exception(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)'
timezone.cxx:(.text+0xbc1): undefined reference to 
`sg_exception::~sg_exception()'
timezone.cxx:(.text+0xbc9): undefined reference to `typeinfo for 
sg_exception'
/usr/local//lib/libsgtiming.a(timezone.o): In function 
`SGTimeZoneContainer::SGTimeZoneContainer(char const*)':
timezone.cxx:(.text+0x14ea): undefined reference to 
`sg_exception::sg_exception(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)'
timezone.cxx:(.text+0x1521): undefined reference to 
`sg_exception::~sg_exception()'
timezone.cxx:(.text+0x1529): undefined reference to `typeinfo for 
sg_exception'
/usr/local//lib/libsgtiming.a(lowleveltime.o): In function 
`fgtzset_internal(int, char const*)':
lowleveltime.cxx:(.text+0x11f1): undefined reference to 
`sg_exception::sg_exception(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)'
lowleveltime.cxx:(.text+0x121a): undefined reference to 
`sg_exception::~sg_exception()'
lowleveltime.cxx:(.text+0x1222): undefined reference to `typeinfo for 
sg_exception'
collect2: ld returned 1 exit status
make[3]: *** [Atlas] Error 1

FG(OSG) compiles and runs ok here, so I thought my environment was ok 
but this does look like an environment problem, at least to my non-dev 
eyes.

I'll try searching the Atlas archives but if anyone _knows_ what the 
problem is...

TIA

LeeE

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to