gcc2.95 says-"non local function uses anonymous type"
Pran Joseph
pran@procsys.com
Mon May 22 02:24:00 GMT 2000
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
More information about the Gcc-bugs
mailing list