Jon Berndt writes:
> Here's the sprintf problem again in a recent build attempt for
> fg_init.cxx. Is there a fix for this for CygWin?
>
> Jon
>
>
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/us
> r/local/include -DPKGLIBDIR=\"/usr/local/lib/FlightGear\" -c -o fg_init.o
> `test -f 'fg_init.cxx' || echo './'`fg_init.cxx
> fg_init.cxx: In function `bool fgSetPosFromAirportIDandRwy(const string &,
> const string &)':
> fg_init.cxx:823: implicit declaration of function `int _snprintf(...)'
> make[2]: *** [fg_init.o] Error 1
>
This seems to clear things up
Norman
$ cvs diff -c FGTrim.h 2>&1 | tee diffs
Index: FGTrim.h
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/FDM/JSBSim/FGTrim.h,v
retrieving revision 1.2
diff -c -r1.2 FGTrim.h
*** FGTrim.h 22 Sep 2002 15:31:09 -0000 1.2
--- FGTrim.h 18 Nov 2002 14:06:56 -0000
***************
*** 66,72 ****
tCustom, tNone, tTurn
} TrimMode;
! #ifdef _WIN32
#define snprintf _snprintf
#endif
--- 66,72 ----
tCustom, tNone, tTurn
} TrimMode;
! #if defined(_WIN32) && !defined(__CYGWIN__)
#define snprintf _snprintf
#endif
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel