> [EMAIL PROTECTED] wrote:
> >  I typed make and I got the following error:
> >
> >  FGNozzle.cpp: In method 'JSBSim::FGNozzle(JSBSim::FGFDMExec *,
> >  JSBSim::FGConfigFile *, int =0)':
> >
> >  FGNozzle.cpp:74: implicit declaration of function 'int
> >  JSBSim::snprintf(..)'
> >
> >  Does someone knows what is wrong?
>
> Platform?  Compiler?  As always, more information is better than less.
> Surely you did more than just "type make" to get this far. :)

Yes, this is important. If you grep our source code (JSBSim) you'll see this in 
some
places (notably FGFCS.cpp):

 #if defined(WIN32) && !defined(__CYGWIN__)
 #  define snprintf _snprintf
 #endif

I remember there is an issue with snprintf(), I just can't remember the details 
offhand,
nor why the above "fix" seems to work.

As a WAG, you might try adding the above three lines to the top of FGNozzle.cpp.

Jon


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to