problems with flex application configuration

Brian Butcher brianjbutcher at fast24.co.uk
Thu Jan 1 18:01:31 GMT 2004


I am trying to use KDevelop for a flex parser( Suse 8.2 Kdevelop 2.1.5 using 
KDE 3.1.1)

When I try to open a new lexical file ( type .l++ ) a dialog appears reminding 
me to ensure that configure.in contains AM_LEX_PROG

When I try the configure I get the error message 'aclocal: configure.in: 86: 
macro `AM_LEX_PROG' not found in library'

My first though was that AM_LEX_PROG was redundant and is replaced by 
KDE_NEED_FLEX ( which is present ) but when I try without AM_LEX_PROG the 
project fails to link with an error message as shown below.

 /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor 
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith 
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-Wcast-align -Wconversion -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new 
-fexceptions -o pgnparse2 pgnparse2.o main.o -lfl 
main.o(.text+0x55): In function `main': 
/home/brian/programs/pgnparse2/pgnparse2/main.cpp:29: undefined reference to 
`yyFlexLexer::yyFlexLexer[in-charge](std::basic_istream<char, 
std::char_traints<char> >*, std::basic_ostream<char, std::char_traits<char> 
>*)' 
collect2: ld returned 1 exit status 

Can give me any pointers?

	Brian Butcher 

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list