I can't understand the compiler error, please help

When I compile I get this:

"Compiling...
Bluebomber128.cpp
main.cpp
Generating Code...
Linking...
main.obj : error LNK2005: _main already defined in Bluebomber128.obj
Debug/Bluebomber128.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

Bluebomber128.exe - 2 error(s), 0 warning(s)"

What exactly am I doing wrong? And are there any easy suggestions?

Comments

  • It seems you have void main() or int main() or something along those terms defined twice... you can only have one main routine for a dos program.

    : When I compile I get this:
    :
    : "Compiling...
    : Bluebomber128.cpp
    : main.cpp
    : Generating Code...
    : Linking...
    : main.obj : error LNK2005: _main already defined in Bluebomber128.obj
    : Debug/Bluebomber128.exe : fatal error LNK1169: one or more multiply defined symbols found
    : Error executing link.exe.
    :
    : Bluebomber128.exe - 2 error(s), 0 warning(s)"
    :
    : What exactly am I doing wrong? And are there any easy suggestions?
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion