Community
Participate
Working Groups
Build Identifier: 20100218-1602 Well, honestly when I want to run a C++ source file, I don't know what happens that the .exe file of the project itself is automatically deleted without reason. Specifically talking, this happens when I try to create a new .cpp file within an existing project that has other .cpp files. Eclipse don't let me to have more than on.cpp file per project, because if I create a second file within an existing project and I try to run it, the .exe file is automatically deleted and that crashes all the project.. Another problem is that after I create and save my .cpp file, and I press the build project option to create the .exe file, and sometimes it is not created. Please help me with that situation. If you need more information, don't hesitate in contacting me. Reproducible: Always Steps to Reproduce: Problem #1 1.Create a project 2.Create the .cpp file 3.Save the .cpp file 4. Press the build option and it doesn't create the .exe file -------------------------------------------- Problem #2 1. Create the project 2. Create the .cpp file 3. Save the .cpp file 4. Build the project. 5. Try to create a second .cpp file within an existing project, but the .exe file is automatically deleted and the program crashes.
I need help with this situation
What makes you think this is CDT? Does your code actually compile and link? What does the build output in the console look like? There's not enough information here, and certainly this works for me. Please re-open if you can provide additional output pointing to a CDT issue.
(In reply to comment #2) > What makes you think this is CDT? Does your code actually compile and link? > What does the build output in the console look like? > > There's not enough information here, and certainly this works for me. Please > re-open if you can provide additional output pointing to a CDT issue. Well, I'm trying to do C++ PROGRAMS in Eclipse IDE and I have two problems working with IDE. The first one is that sometimes, after creating a project, after creating the .cpp file within that project, when I press the build project button, Eclipse doesn't create the .exe file of the project. For that reason, when I try to run the .cpp file, the system tells me: " Launch failed. Binary not found." The second problem that I have is that after creating a project, after creating a .cpp file, compiling the project, generating the .exe file, if I want to add a second .cpp file within an existing project, I can add it and compile it, but when I'm going to run it, I don't know what happen that at once the .exe file of the project is automatically deleted. Eclipse starts to show the tiny red crosses indicating that something bad is happening. Please help me with that situation. If you want to have more information, tell me the specific information you have to know in order to solve this issue. Note: I have installed MinGW and MSYS.
(In reply to comment #2) > What makes you think this is CDT? Does your code actually compile and link? > What does the build output in the console look like? > > There's not enough information here, and certainly this works for me. Please > re-open if you can provide additional output pointing to a CDT issue. This is the code that Eclipse is showing me when sometimes I try to generate the .exe file and it doesn't let me. **** Build of configuration Debug for project SelectionStructures **** **** Internal Builder is used for build **** g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\switch.o ..\src\switch.cpp ..\src\switch.cpp: In function `int main()': ..\src\switch.cpp:16: error: ambiguous overload for 'operator>>' in 'std::cin >> '\n'' C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/istream.tcc:87: note: candidates are: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>&(*)(std::basic_istream<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>] <near match> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/istream.tcc:93: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_ios<_CharT, _Traits>&(*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>] <near match> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/istream.tcc:102: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base&(*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>] <near match> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/istream.tcc:417: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_streambuf<_CharT, _Traits>*) [with _CharT = char, _Traits = std::char_traits<char>] <near match> Build error occurred, build is stopped Time consumed: 397 ms.
Please ask specific questions on the forums: http://www.eclipse.org/forums/index.php?t=thread&frm_id=80& The red Xs you see are build errors. You need to look in the Problems View and the console to figure out why the build went wrong. As your console output shows you've got a compile error in your code. This isn't a CDT issue.