Andy Ross wrote:

Basically: please be constructive.  Singing about SGI's wonderful Unix
or flaming GCC for failing to warn about correct (!) code isn't
improving Nasal or FlightGear.

Excuse me? You started accusing other compilers about not being standard compliant and now I am the one who started this?


Here is a small subset from the IRIX man pages for MIPSpro:

The following list summarizes some of the major differences between
the GNU cc compiler and the MIPSpro C compiler.  The wording gcc
allows or g++ allows in the following paragraphs indicates that the
GNU compiler is providing more flexible constructs beyond what is
allowed in the standard.  The MIPSpro compilers adhere more closely to
standards requirements.

 * The gcc compiler allows variadic macros; the MIPSpro 7.4 compilers
   support these macros in c99 mode.  If you have code that uses
   ellipses (...) as part of a macro definition and you are not
   compiling with c99, you will need to rewrite the macro. Two possible
   approaches are to replace the macro with a new variadic function, or
   to create a family of macros, each taking different (fixed) numbers
   of arguments.
 * gcc allows the non-standard __FUNCTION__ and __PRETTY_FUNCTION__
   pseudo-macros.  These are not true macros, so you must use _GNUC__
   to test for them. As of IRIX 6.5.18, the c99 func macro is
   available, which expands to a function name.
 * By default gcc allows C++ style double slash (//) comments in C
   code.  To obtain this behavior with the MIPSpro C compilers you must
   specify the -Xcpluscomm command line option or use c99, which
   defines a double slash (//) to be a comment.

But leave it at this, it might be better to spent our time hunting problems like this one:


When I start FlightGear I get the following list of errors on IRIX (bug-Endian) (Linux doesn't have this problem):

Nasal runtime error: non-objects have no members
  at /opt/share/FlightGear/data/Nasal/view.nas, line 24
Nasal runtime error: non-objects have no members
  at /opt/share/FlightGear/data/Nasal/gui.nas, line 40
Nasal runtime error: non-objects have no members
  at /opt/share/FlightGear/data/Nasal/autopilot.nas, line 29
Nasal runtime error: non-objects have no members
  at /opt/share/FlightGear/data/Nasal/controls.nas, line 17
Nasal runtime error: non-objects have no members
  at /opt/share/FlightGear/data/Nasal/fuel.nas, line 17

After that, every key I press generates this error:

Nasal runtime error: no such member
  at <command>, line 1
Failed to execute command nasal

Do you have any clue where to search for this?

Erik




_______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to