Erik Hofman wrote:
 > Andy Ross wrote:
 > > This is perfectly legal C++; I tried it with gcc (full program
 > > attached) and it works fine.  What errors are you seeing?
 >
 > This program gives me a core dump, because __fg_snd_[0].fn == NULL.

Not in the code snippet you sent.  The value of __fg_snd_[0].fn is the
address of the _fg_lin function.  It's not my data structure, you
defined it. :)

When run under gcc, in fact the _fg_lin function is called, and
returns zero, which output appears on the console.  All normal.  You
have a compiler bug.  Which compiler are you using?  Try sending the
program to the vendor and saying "This is legal, gcc compiles it fine,
but you don't".

Andy

-- 
Andrew J. Ross                NextBus Information Systems
Senior Software Engineer      Emeryville, CA
[EMAIL PROTECTED]              http://www.nextbus.com
"Men go crazy in conflagrations.  They only get better one by one."
  - Sting (misquoted)


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to