How to integrate a Lex file in a project builder ?
How to integrate a Lex file in a project builder ?
- Subject: How to integrate a Lex file in a project builder ?
- From: Thierry Passeron <email@hidden>
- Date: Tue, 25 Mar 2003 09:01:52 +0100
Hello people of the ML, i have one tricky (at least for me) question.
i have a project made from scratch in project builder, i never had to
worry about how pb had to link the different classes and files i have
included in it but i decided to make the parsing part of my project
with lex because it is easier to make something more readable with lex.
I tested the lexer individualy with a fake main.c and everything works.
But now i have a problem i can import the lex file in pb but how can i
define how pb should compile it and then link it to the rest keeping in
mind that the lex file has some extern declarations to be linked to the
project.
This is how i compiled the lexer individualy using the fake main.c:
lex -PSRV lexer.l && gcc -o lexer lex.SRV.c main.c -ll
What shall i do in pb ?
Best regards,
Thierry.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.