Skip to content

compiling error #1

@bmudit

Description

@bmudit

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

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