TK> When trying to build STP from the svn repository (revision 967), I
TK> get the following error message:
TK> flex -Cfe -olexCVC.cpp -Pcvc CVC.lex
TK> flex: -Cf/-CF and %option yylineno are incompatible
TK> I "fixed" this by removing the "f" flag to flex:
[snip patch]
TK> Unfortunately, STP still fails to link because to the *lex_destroy()
TK> functions in src/main/main.cpp:
TK> main.o: In function `main':
TK> /u/tking/software/stp/src/main/main.cpp:467: undefined reference to
TK> `smt2lex_destroy()'
TK> I can get the program to compile by commenting these lines out,
TK> but that does not strike me as a terribly good compromise. Does
TK> pass 'make check' though.
I'd say this is probably not a bad work-around. Not calling a
destructor sounds like it could be some sort of memory leak, but I
doubt that it is one that would be very noticeable in most
situations. (I don't think the lexer allocates much state, and you
generally only have one per program execution anyway.)
TK> The versions of flex I am currently stuck with are
TK> flex-2.5.4a-41.fc6 and flex-2.5.4a-33. These are the default Red
TK> Hat Enterprise 5 and 4 versions of flex. I am not sure if
TK> upgrading to a newer version would fix my problems or not.
I believe that the flex features that STP needs were added in version
2.5.20, released in September of 2002. So you should be OK with a
version newer than that. For some reason RedHat seems to like very old
versions of flex.
Hope this helps,
-- Stephen
> flex -Cfe -olexCVC.cpp -Pcvc CVC.lex
> flex: -Cf/-CF and %option yylineno are incompatible
>
> I "fixed" this by removing the "f" flag to flex:
> Unfortunately, STP still fails to link because to the *lex_destroy()
> functions in src/main/main.cpp:
> main.o: In function `main':
> main.cpp:467: undefined reference to `smt2lex_destroy()'
> main.cpp:470: undefined reference to `cvclex_destroy()'
--
---
You received this message because you are subscribed to the Google Groups "stp-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stp-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.