[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flex c++ bug
From: |
Aidan Delaney |
Subject: |
Re: Flex c++ bug |
Date: |
Tue, 4 Feb 2003 18:53:54 +0000 |
User-agent: |
KMail/1.5 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> > Automake does not seem to differenciate between flex generated c++ files
> > and c files
>
> Not if it has to guess. Use .ll or .l++ as the extension for your lex
> file, drop the -+ and watch it work. :-)
>
> Reason behind that: automake needs to know at Makefile.in generation
> time which compilers it will need. Thus, every language needs different
> extensions, and if the files are generated, automake needs to know which
> extensions the generated files will have.
There does seem to be a bug
address@hidden traditional $ make
flex traditional.ll && mv lex.yy.c traditional.cc
I have reconfigured the source after renaming my file to .ll and changing the
makefile. Here's the Makefile.am
lib_LTLIBRARIES=libtraditional.la
libtraditional_la_SOURCES=traditional.ll traditional_parser.yy
AM_YFLAGS=-d
libtraditional_la_LDFLAGS= -version-info 0:0:0 -module -lfl
AFAIK it should run the @BISON@ -d first, and it dosn't seem to be doing that
either.
I must be doing somthing incredibly stupid :(
- --
Thanks,
Aidan Delaney
- --
If anyone has both the right and the need to study the code and be assured of
its correct functioning, it is users.
Whitfield Diffie
gpg key: http://tass.cs.may.ie/~balor/public_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE+QAxCJqM6BHYo7esRAiDmAJ41al0GCyIkTXSW8i5rLLhuE9lK3QCdFhle
7GWUC1K1zAoxlwhSrXdSxuw=
=mBrT
-----END PGP SIGNATURE-----