RE: [Flightgear-devel] FGFS 0.9.8 Compilation Error #2
> [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
Re: [Flightgear-devel] FGFS 0.9.8 Compilation Error #2
[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. :) As a wild guess, try adding a "#include " to the top of the file. The snprintf() function is a C function from this header (also part of the C++ standard, but use the C header for the test) and the file doesn't include it explicitly. Also, if you are going to take the trouble to compile FlightGear from source, you should probably think about using the CVS versions, as they are easier for the developers to answer questions about. Most of us don't have 0.9.8 trees. Andy ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] FGFS 0.9.8 Compilation Error #2
Hi, I am trying to go to 0version 0.9.8 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? Thanks in advance, Carlos Renato - This mail sent through IMP: http://horde.org/imp/ ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d