This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc error-"non local function uses anonymous type"


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






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]