This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc2.95 says-"non local function uses anonymous type"
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc2.95 says-"non local function uses anonymous type"
- From: Pran Joseph <pran at procsys dot com>
- Date: Mon, 22 May 2000 14:55:54 +0530
- Organization: Processor Systems (India) Pvt. Ltd
- Reply-To: pran at procsys dot com
Hi,
I installed gcc 2.95.2 package on my freebsd 3.4 i386 machine.
Default
gcc with freebsd install is gcc 2.7.2.3
gcc295 -v is giving the output below -->
Reading specs from
/usr/local/lib/gcc-lib/i386-portbld-freebsd3.4/2.95.2/specs
gcc version 2.95.2 19991024 (release)
When I use gcc295 to compile my programs i am getting some errors. Same
file was working fine with gcc 2.7
gcc295 error--->
In file included from test.cpp
test.h:5: non local function 'struct {anonymous} * OpenDatabase(int)
uses anonymous type
test .h file contents -->
:4 #include<gdbm.h>
:5 GDBM_FILE OpenDatabase(int);
Any one of you encountered this problem or know how to solve this
problem.
-Pran Joseph
pran@procsys.com