Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I presently have a compiler to write with Flex and Bison.
I have a lex.l file, and a parse.y in which there are no conflicts.
I also have a symtable.h included.
I have a makefile as follows...
============================================================
project: parse.tab.o lex.yy.o
echo ---> compiling and linking project program
cc -DYYDEBUG=1 -o project parse.tab.o lex.yy.o -ly -ll -lm
lex.yy.o: lex.yy.c parse.tab.h # the dependencies of lex.yy.o the lexer object
echo ---> determining dependency for lex.yy.o
lex.yy.o parse.tab.o: symtable.h #just declares that symtable.h is a dependency to both
echo ---> determining symtable.h dependency for lex.yy.o parse.tab.o
parse.tab.c parse.tab.h: parse.y # THE PARSE C AND H FILES MADE... OK to here
echo ---> making parse.tab.c and parse.tab.h
bison -d parse.y
lex.yy.c : lex.l # THE LEX C FILE MADE
echo ---> making lexfile
flex lex.l
============================================================
When I run it, I get the following output. The line numbers don't actually correspond. Could you advise as to how the makefile should be written to not have any error?
============================================================
joe@BlueAcer:/usr/local/project/chk$ make
makefile:9: warning: overriding commands for target `lex.yy.o'
makefile:6: warning: ignoring old commands for target `lex.yy.o'
echo ---> determining symtable.h dependency for lex.yy.o parse.tab.o
echo ---> making lexfile
flex lex.l
echo ---> making parse.tab.c and parse.tab.h
bison -d parse.y
echo ---> determining symtable.h dependency for lex.yy.o parse.tab.o
echo ---> compiling and linking project program
cc -DYYDEBUG=1 -o project parse.tab.o lex.yy.o -ly -ll -lm
cc: parse.tab.o: No such file or directory
cc: lex.yy.o: No such file or directory
make: *** [project] Error 1
joe@BlueAcer:/usr/local/project/chk$
============================================================
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.