Mail Archives: djgpp/1997/02/14/10:24:29
A.Appleyard (A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk) wrote:
: [Please reply to me in person also]
Hopefully I have; this isn't my preferred newsreader, so I can't make any
promises ;)
: Line 621 etseq of file DJGPP\INFO\GCC.I8 says that in djgpp C functions can
: be declared inside functions, and quotes this example:-
: and djgpp v2 refused it, thus:-
: C:\AMZIP>gcc _.cc
...
If you read that page more carefully you'll see that nested functions are
not allowed in Gnu C++ - rename your source file to _.c and it should work.
HTH
George Foot
gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk
- Raw text -