Im getting following errors while compiling my LEX program
There are the errors I'm getting:
Quote:
My code is as follows: Code:
%{ |
I don't know lex, but from C++ I'm guessing you need to write
Code:
fprintf (file,"stderr,*could not open %s\n",argv[1]); |
I've never compiled from source before but I did find some good instructions to learn how to.
If you ever need to re-compile a program you should do a <make clean> or (make dist clean) This will delete files created during the previous compile and give you a clean tree. The instructions also said: If you encounter problems from source the error should clearly state what you are missing or why it is failing. I found the instructions under "Tutorials" at the main page of linuxquestions written by Jeremy titled Compiling Programs From Source http://www.linuxquestions.org/linux/...ms_from_Source Hope this helps |
Thank you! :)
Quote:
Thank you very much for your help. I have successfully edited my code. |
Well done :) please mark the thread as 'SOLVED' (there should be a link at the top of the page)
Thanks, |
All times are GMT -5. The time now is 08:33 AM. |