Erro ao compilar no NetBeans
Olá pessoal, comecei a utilizar o NetBeans no Linux para compilar e executar meus arquivos em C++, porém ao compilar o projeto acontece o seguinte erro, como podem ver está tudo configurando corretamente, grato pela atenção.
/applications/core/interface/imageproxy/imageproxy.php?img=http://i44.tinypic.com/34qlrb7.png&key=c966f04656876495d79405e0ecfe19688826ede562138bb0e04dd049f489f664" alt="34qlrb7.png" />
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-confmake[1]: Entrando no diretório `/home/joao/NetBeansProjects/esd' "/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/esd make[2]: Entrando no diretório `/home/joao/NetBeansProjects/esd' mkdir -p dist/Debug/GNU-Linux-x86 g++ -o dist/Debug/GNU-Linux-x86/esd build/Debug/GNU-Linux-x86/OlaMundo.o build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux-x86/main.o: In function `main': /home/joao/NetBeansProjects/esd/main.cpp:15: multiple definition of `main' build/Debug/GNU-Linux-x86/OlaMundo.o:/home/joao/NetBeansProjects/esd/OlaMundo.c++:9: first defined here collect2: ld returned 1 exit status make[2]: ** [dist/Debug/GNU-Linux-x86/esd] Erro 1 make[2]: Saindo do diretório `/home/joao/NetBeansProjects/esd' make[1]: ** [.build-conf] Erro 2 make[1]: Saindo do diretório `/home/joao/NetBeansProjects/esd' make: ** [.build-impl] Erro 2
CONSTRUIR FAILED (valor de saída 2, tempo total: 188ms)
Discussão (3)
Carregando comentários...