Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 

 Home / General Programming / Question regarding the parsing tutorial Account Manager
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
Boris Dinkevich

June 25, 1999, 03:23 PM

Hello,

I was wondering if someone has the compiled examples of the tutorial files.
I am using djgpp and had some trouble with comiling. [I just did gxx main.cpp -o foo


[if possible answer by email]

Best Regards
Boris Dinkevich

 
Jan Niestadt

June 27, 1999, 03:32 PM

>>I was wondering if someone has the compiled examples of the tutorial files.
>>I am using djgpp and had some trouble with comiling. [I just did gxx main.cpp -o foo

(copy of email to Boris, in case anyone else is having similar troubles:)

Did you create the parser and the lexer as specified in tut2 and 3? If you did, you should have files called lex.cpp and parse.cpp; then you can compile these files together with main.cpp to create the final program.

I'm not familiar with djgpp but I think the following 3 commands should correctly compile the tutorial:

flex -olex.cpp string.l
bison --defines --verbose -o parse.cpp
gxx lex.cpp parse.cpp main.cpp -o foo

(I assumed you were talking about tut3, but the same goes for the next tutorials, they only have more source files)

Jan Niestadt.

 
This thread contains 2 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.