c++eclipsebuildbinaries

Build project has encountered a problemm Eclipse C++.


Details are saying I have two different tools of the same compiler. I'm not sure where to go from here to fix this so I can build my project. Any ideas?

This is the detailed message:

Errors occurred during the build. Errors running builder 'CDT Builder' on project '263_Hw'. Internal error building project 263_Hw configuration Debug Generated resource conflict: two resources of the same name: /263_Hw/Debug/main.o generated by different tools tool1: GCC C++ Compiler tool2: GCC C++ Compiler

Generated resource conflict: two resources of the same name: /263_Hw/Debug/main.o generated by different tools tool1: GCC C++ Compiler tool2: GCC C++ Compiler

Internal error building project 263_Hw configuration Debug Generated resource conflict: two resources of the same name: /263_Hw/Debug/main.o generated by different tools tool1: GCC C++ Compiler tool2: GCC C++ Compiler

Generated resource conflict: two resources of the same name: /263_Hw/Debug/main.o generated by different tools tool1: GCC C++ Compiler tool2: GCC C++ Compiler


Solution

  • The most likely situation: you have two source files with the same name but different file extensions. In your case, that would likely indicate you have something like

    main.c main.cpp

    in your project tree. Could be tricky to see, especially if you have a lot of nested folders. I'd go to your source root and do a search for main.*