Solved

problem while compiling y.tab.c - yacc

Posted on 2009-04-15
2
553 Views
Last Modified: 2012-05-06
Hello,

When i  compile my lexer and my grammar seperately i get no errors. but when i compile them as a shell script, i get a multiple errors. Why is that happening ?

yacc -d parser.y
lex lexer.l
gcc -c y.tab.c lex.yy.c
gcc y.tab.o lex.yy.o compiler.c -o compiler


Thanks in advance for any help !
0
Comment
Question by:unknown_
2 Comments
 
LVL 7

Accepted Solution

by:
HalfAsleep earned 500 total points
ID: 24152421
What errors are you getting?
0
 

Author Closing Comment

by:unknown_
ID: 31570557
ok
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now