Discussion:
C++ wont work: Build failed
Joffy
2014-10-19 14:55:49 UTC
Permalink
Hey, i tried simply running a new project and i just get an error, its a lot of lines but this seems to be where its going wrong:

C:\Users\Joffy\Documents\Work\Uni\YR2\Java\Week3\CppApplication_2/newmain.cpp:15: multiple definition of `main'
build/Debug/MinGW-Windows/main.o:C:\Users\Joffy\Documents\Work\Uni\YR2\Java\Week3\CppApplication_2/main.cpp:15: first defined here
collect2.exe: error: ld returned 1 exit status
make.exe[2]: *** [dist/Debug/MinGW-Windows/cppapplication_2.exe] Error 1
make.exe[2]: Leaving directory `/c/Users/Joffy/Documents/Work/Uni/YR2/Java/Week3/CppApplication_2'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/c/Users/Joffy/Documents/Work/Uni/YR2/Java/Week3/CppApplication_2'
make.exe": *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 3s)

thanks for any help, im pretty new at this!

Loading...