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

Error: multiple definition of functions #1

Open
BaseMax opened this issue Aug 2, 2020 · 0 comments
Open

Error: multiple definition of functions #1

BaseMax opened this issue Aug 2, 2020 · 0 comments

Comments

@BaseMax
Copy link

BaseMax commented Aug 2, 2020

Hello,

I encountered a problem compiling your project.

[max@base Compiler Files ]$ make
bison -d batata.y
flex batata.l
gcc -ll interpreter.c funcTable.c lex.yy.c batata.tab.c
/usr/bin/ld: cannot find -ll
/usr/bin/ld: /tmp/ccw1KaDh.o:(.bss+0x0): multiple definition of `funcTable'; /tmp/ccmCiQQi.o:(.bss+0x0): first defined here
/usr/bin/ld: /tmp/ccw1KaDh.o:(.bss+0x20): multiple definition of `func_array'; /tmp/ccmCiQQi.o:(.bss+0x20): first defined here
/usr/bin/ld: /tmp/cc3Jv34i.o:(.bss+0x0): multiple definition of `funcTable'; /tmp/ccmCiQQi.o:(.bss+0x0): first defined here
/usr/bin/ld: /tmp/cc3Jv34i.o:(.bss+0x20): multiple definition of `func_array'; /tmp/ccmCiQQi.o:(.bss+0x20): first defined here
collect2: error: ld returned 1 exit status
make: *** [makefile:6: compile] Error 1

Regards,
Max

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

No branches or pull requests

1 participant