www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/14/10:24:29

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: function in function
Date: 14 Feb 1997 13:59:10 GMT
Organization: Oxford University
Lines: 20
Message-ID: <5e1r3e$271@news.ox.ac.uk>
References: <23E917870F3 AT fs2 DOT mt DOT umist DOT ac DOT uk>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019