Board index FlightGear Support Compiling

SimGear 17,000+ errors  Topic is solved

Building FlightGear from source, and in the need for help?

SimGear 17,000+ errors

Postby asbah86 » Mon Mar 11, 2013 5:31 pm

I am currently trying to build simgear 2.8 with visual studio 2012 and have 17,000+ errors. Most of which are errors c2039 and c2873 dealing with cstring, cmath, and iosfwd.

After running cmake I get a couple of not founds:
While BOOST_ROOT is found and set manually by me, Boost_DIR is not found and i'm not sure how to resolve the issue,
APR-1_LIBRARY-NOTFOUND not sure what this is or how to resolve,

unistd.h,
gettimeofday,
timegm,
rint,
mkdtemp,
bcopy,
mmap

Test HAVE_ISNAN - failed
Test HAVE_STD_ISNAN - failed

Not sure if these would have any effect on my errors.

An example of the errors:
Error error C2039: 'acosf' : is not a member of '`global namespace'' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath 28 sgmath
Error error C2873: 'acosf' : symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath 28 sgmath

Error error C2039: 'memchr' : is not a member of '`global namespace'' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cstring 18 sgmath
Error error C2873: 'memchr' : symbol cannot be used in a using-declaration C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cstring 18 sgmath




Am I missing a precompile definition? Miss an option in cmake(it configured with no errors) ?
asbah86
 
Posts: 13
Joined: Mon Mar 11, 2013 5:20 pm

Re: SimGear 17,000+ errors  

Postby asbah86 » Wed Mar 13, 2013 3:08 pm

Issue Resolved. One of my libraries I downloaded for SimGear has math.h and string.h include files which were being read instead of the std cmath and cstring files.
asbah86
 
Posts: 13
Joined: Mon Mar 11, 2013 5:20 pm

Re: SimGear 17,000+ errors

Postby elgaton » Sun Oct 19, 2014 9:13 am

Sorry to revive an old post - how did you fix it? I tried manually fixing the order of include directories in the projects, but had no luck so far.
NIATCA 2nd admin, regular ATC at LIPX and creator of the LIPX custom scenery
elgaton
 
Posts: 1106
Joined: Tue Mar 19, 2013 5:58 pm
Callsign: I-ELGA/LIPX_TW
Version: Git
OS: Windows + Arch Linux


Return to Compiling

Who is online

Users browsing this forum: No registered users and 5 guests