08-07-2012 09:47 AM
I have a library that I am trying to compile (C) and it has a LEX file (.l) that gets compiled into a .c file. It i'ts make file, it has:
xmlparse.c : xmlparse.l $(LEX) $(LEXFLAGS) $< -@mv lex.yy.c xmlparse.c @echo Created xmlparse.c
Where LEX is defined as "flex" and nothing for LEXFLAGS.
Could not find how this should be done in the QNX Momentics IDE. Anyone come across this?
08-07-2012 01:00 PM
08-20-2012 03:42 PM - edited 08-20-2012 03:43 PM
Can you verify if lex is available on your path? Have you tried using the fully qualified path?
Did you refresh the project after building?
08-27-2012 11:41 AM
I think lex is shipped as part of toolchain. If you use "make" project (not managed) it should work from makefile,
if you want to use managed project, you can either try pre-build steps, or you can add another "builder" into
the project, and create a custom command (for example one which invoke make).
Alternative you can separate the code of parser into a static library and create another "make" project,
and make you managed project depend on that library.