Re: [Datadraw-user] [datadraw] probleme of compile
Brought to you by:
smilindog2000
From: Richard P. <rdp...@gm...> - 2009-01-17 02:49:47
|
Hi Wang, All problematic symbols are from dvscan.o. Have you tried "rm dvscan.c dvscan.o; make" ? That should do it. If the problem persist: dvlexlex shall be defined in dvscan.c generated by dvscan.l and flex. as I read your message, the following test shall differ from my execution, isn't it? [rip@localhost src]$ nm dvscan.o | grep -w dvlexlex 00000000000006fb T dvlexlex [rip@localhost src]$ grep -w dvlexlex dvscan.c #define yylex dvlexlex extern int dvlexlex (void); #define YY_DECL int dvlexlex (void) ... [rip@localhost src]$ grep -w dvlex dvscan.l %option prefix="dvlex" [rip@localhost src]$ flex --version flex 2.5.33 What is your mileage? I tried to find on the web starting at which flex version, %option prefix has been introduced (it has been a while for sure) but without any success. On the main page of flex, flex 2.5.33 happen to be the oldest non obsoleted version. Best Regards Richard Prescott On Fri, Jan 16, 2009 at 5:04 PM, wang liang <fab...@gm...> wrote: > hi, geeks > i have a problem when i compile the source from svn > > gcc -g -O2 -Wall -W -Wno-unused-parameter -Wno-unused-function -o > datadraw dvadmin.o dvbuild.o dvdatabase.o dvgenc.o dvgenh.o dvgenerate.o > dvlexwrap.o dvmain.o dvparse.o dvread.o dvscan.o dvutil.o > ../util/libddutil-dbg.a > dvlexwrap.o: In function `dvlex': > /root/ed/datadraw/src/dvlexwrap.c:36: undefined reference to `dvlexlex' > dvparse.o: In function `dverror': > /root/ed/datadraw/src/dvparse.y:49: undefined reference to `dvlextext' > dvread.o: In function `dvReadFile': > /root/ed/datadraw/src/dvread.c:268: undefined reference to > `dvLastWasReturn' > /root/ed/datadraw/src/dvread.c:269: undefined reference to `dvEnding' > > the compiler can't find these extern functions and variables, my output of > configure > > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking whether to enable maintainer-specific portions of Makefiles... no > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking for style of include used by make... GNU > checking dependency style of gcc... gcc3 > checking for ranlib... ranlib > checking for a BSD-compatible install... /usr/bin/install -c > checking for flex... flex > checking lex output file root... lex.yy > checking lex library... -lfl > checking whether yytext is a pointer... yes > checking for bison... bison -y > checking If the compiler accepts -Wall... yes > checking If the compiler accepts -W... yes > checking If the compiler accepts -Wno-unused-parameter... yes > checking If the compiler accepts -Wno-unused-function... yes > > ** Configuration summary for datadraw 3.1.X-unstable: > > CPPFLAGS: > CFLAGS: -g -O2 -Wall -W -Wno-unused-parameter -Wno-unused-function > LIBS: > > do i miss some packages of lex/yacc? > > thanks > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Datadraw-user mailing list > Dat...@li... > https://lists.sourceforge.net/lists/listinfo/datadraw-user > > |