Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error: multiple definition of functions #1

@BaseMax

Description

@BaseMax

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions