Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!snorkelwacker!paperboy!osf.org!daniel From: daniel@osf.org (Daniel Dardailler) Newsgroups: comp.lang.c++ Subject: function variable Message-ID: <10983@paperboy.OSF.ORG> Date: 19 Jul 90 14:42:30 GMT Sender: news@OSF.ORG Reply-To: daniel@osf.org (Daniel Dardailler) Organization: Open Software Foundation Lines: 28 I have a g++ problem: main() { int (* foo) (); } doesn't compile with: `foo' undeclared (first use this function) but: main() { static int (* foo) (); } and int (* foo) (); main() { } works fine. Any idea? Daniel Dardailler | OSF/Motif Team Open Software Foundation | Email : daniel@osf.org 11 Cambridge Center | Phone : (617) 621 8840 CAMBRIDGE, MA 02142 | Fax : (617) 621 0584