Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling error #1

Open
bmudit opened this issue Apr 13, 2023 · 0 comments · May be fixed by #2
Open

compiling error #1

bmudit opened this issue Apr 13, 2023 · 0 comments · May be fixed by #2

Comments

@bmudit
Copy link

bmudit commented Apr 13, 2023

While compiling the y.tab.c file, the following error pop up:

/usr/bin/ld: /tmp/ccSDCAsB.o: in function main': y.tab.c:(.text+0x5605): multiple definition of main'; /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libl.a(libmain.o):(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status

Mostly, the bison output file is creating multiple definitions of the the main function

@TanKaiYi0220 TanKaiYi0220 linked a pull request Apr 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant