This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc error-"non local function uses anonymous type"
- To: gcc at gcc dot gnu dot org
- Subject: gcc error-"non local function uses anonymous type"
- From: Pran Joseph <pran at procsys dot com>
- Date: Fri, 24 Mar 2000 19:05:23 +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.
My problem is that following code is giving error with gcc2.95.2.It is
working fine with gcc 2.7.2.3.
:1 #include<gdbm.h>
:2 GDBM_FILE OpenDatabase(int);
Error Message :
test.h:2: non local function 'struct{anonymous}*
OpenDatabase(int) uses anonymous type
GDBM_FILE is a structure used by gdbm database library defined in
gdbm.h. Any one of you encountered this
problem or know how to solve this problem. I asked th question gcc-bugs
mailing list. But no one replied.
"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)
Thanks in Advance
-Pran