Re: [Flightgear-devel] Recent GIT version fails to compile (fgadmin_funcs)

2012-04-08 Thread ThorstenB
Am 07.04.2012 21:20, schrieb Björn Kesten: I think I've upgraded GCC to 4.7 recently, but for the life of me, I can't remember what else got upgraded that might have broken FG compilation. The drawback of running a rolling release system (Arch Linux)... The advantage is: you can beta-test FG

Re: [Flightgear-devel] Recent GIT version fails to compile (fgadmin_funcs)

2012-04-07 Thread ThorstenB
On 06.04.2012 19:07, Björn Kesten wrote: I hope this is the right place for GIT version related things. Certainly is ;-). utils/fgadmin/src/CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o /home/bjoern/fg_git/sources/flightgear/utils/fgadmin/src/fgadmin_funcs.cxx: In function ‘void

Re: [Flightgear-devel] Recent GIT version fails to compile (fgadmin_funcs)

2012-04-07 Thread Geoff McLane
Hi Björn, In unix, usually 'mkdir' and 'unlink' are found in the very ubiquitous unix header - #include unistd.h Maybe this was previously being included through the many FLTK, and other headers included... but was removed from one of them in some later versions, so this could be the

Re: [Flightgear-devel] Recent GIT version fails to compile (fgadmin_funcs)

2012-04-07 Thread Geoff McLane
Hi Björn, Thorsten, Following on from my previous, perhaps the full patch should be - #ifdef _WIN32 # include direct.h # include io.h #define unlink _unlink #define mkdir _mkdir #else // !_WIN32 #include unistd.h #endif To make windows happy ;=)) and avoid some warnings... Regards, Geoff.

Re: [Flightgear-devel] Recent GIT version fails to compile (fgadmin_funcs)

2012-04-07 Thread ThorstenB
Am 07.04.2012 15:33, schrieb Geoff McLane: #ifdef _WIN32 # includedirect.h # includeio.h #define unlink _unlink #define mkdir _mkdir #else // !_WIN32 #includeunistd.h #endif To make windows happy ;=)) and avoid some warnings... Yes, looks good. Indeed, I can't see how fgadmin

Re: [Flightgear-devel] Recent GIT version fails to compile (fgadmin_funcs)

2012-04-07 Thread Björn Kesten
Hey guys, I think I've upgraded GCC to 4.7 recently, but for the life of me, I can't remember what else got upgraded that might have broken FG compilation. The drawback of running a rolling release system (Arch Linux)... #ifdef _WIN32 #  includedirect.h #  includeio.h #define unlink _unlink

[Flightgear-devel] Recent GIT version fails to compile (fgadmin_funcs)

2012-04-06 Thread Björn Kesten
Hello everyone, I hope this is the right place for GIT version related things. Anyway, I can't compile the newest build from GIT ('next' branch). Console output: [ 97%] Building CXX object utils/fgadmin/src/CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o