1

main() first defined here

view story
linux-howto

http://stackoverflow.com – I'm trying to compile my project in Eclipse. However, it says that the main() is defined more than once. I grep'd my project dir and it found only one definition of main(), in main.cpp. Apparently it is somewhere else.maybe a dir I linked to. The only dirs I linked to are: -ljson_linux-gcc-4.5.2_libmt The compiler output is: make all Building file: ../src/main.cpp Invoking: GCC C++ Compiler g++ -Ijson_linux-gcc-4.5.2_libmt -I/usr/include/mysql -I/usr/include/jsoncpp-src-0.5.0/include -O0 -g3 -Wall -c -fmessage-length=0 -Ijson_linux-gcc-4.5.2_libmt -MMD -MP -MF"src/main.d" -MT"src/main. (HowTos)