Hi Martin,
Your version of GCC must be stricter than mine. It's a
good catch - I made a bunch of functions static so
that they wouldn't be exported in the DLL. So these
shouldn't be declared in header files too.
Best,
Dom
--- Martin Sevior <msevior@physics.unimelb.edu.au>
wrote:
>
> Hi folks,
> Today I did a cvs update of link-grammar
> and attempted a
> rebuild. I got this far:
>
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE=\"link-grammar
> \" -DVERSION=\"4.2.3\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DENABLE_BINRELOC=
> -DHAVE_LIBPTHREAD=1 -DBR_PTHREAD=1 -DHAVE_LOCALE_H=1
> -DHAVE_LC_MESSAGES=1 -DVERSION=\"4.2.3\"
> -DDICTIONARY_DIR=
> \"/home/msevior/abidir/share/link-grammar\" -I. -I.
> -I.. -g -O2 -MT
> build-disjuncts.lo -MD -MP -MF
> .deps/build-disjuncts.Tpo -c
> build-disjuncts.c -fPIC -DPIC -o
> .libs/build-disjuncts.o
> build-disjuncts.c:151: error: static declaration of
> 'maxcost_of_sentence' follows non-static declaration
> ../link-grammar/build-disjuncts.h:13: error:
> previous declaration of
> 'maxcost_of_sentence' was here
> build-disjuncts.c:261: error: static declaration of
> 'print_disjunct_list' follows non-static declaration
> ../link-grammar/build-disjuncts.h:15: error:
> previous declaration of
> 'print_disjunct_list' was here
> make[1]: *** [build-disjuncts.lo] Error 1
>
> My distro is FC5. Any idea what is wrong?
>
> Cheers
>
> Martin
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on Fri Jun 30 14:09:40 2006
This archive was generated by hypermail 2.1.8 : Fri Jun 30 2006 - 14:09:41 CEST