Howdy, Stranger!

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

Categories

I can't understand the compiler error, please help

Bluebomber128Bluebomber128 Member Posts: 1
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

  • NinkazuNinkazu Member Posts: 13
    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?
    :
    :

  • Shawn CarterShawn Carter Member Posts: 0

    _______ | http://forcoder.org | free video tutorials and ebooks about { Delphi, PHP, Scratch, Visual Basic, C, Java, Ruby, Perl, Python, Go, Objective-C, C#, MATLAB, Swift, R, Visual Basic .NET, JavaScript, PL/SQL, C++, Assembly Rust, SAS, Awk, Scala, COBOL, Apex, Lisp, Erlang, Julia, Alice, Clojure, Dart, Hack, D, Scheme, LabVIEW, Ada, Lua, ABAP, ML, Logo, Transact-SQL, Fortran, Bash, VBScript, F#, Prolog, FoxPro, Kotlin, Crystal } _________

Sign In or Register to comment.