public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc error-"non local function uses anonymous type"
@ 2000-05-24  6:33 Pran Joseph
  0 siblings, 0 replies; only message in thread
From: Pran Joseph @ 2000-05-24  6:33 UTC (permalink / raw)
  To: gcc

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-24  6:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-24  6:33 gcc error-"non local function uses anonymous type" Pran Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).