| Summary: | I'm having problems compiling and running eclipse projects | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Luis <luis.perez38> |
| Component: | cdt-build | Assignee: | cdt-build-inbox <cdt-build-inbox> |
| Status: | RESOLVED NOT_ECLIPSE | QA Contact: | Andrew Gvozdev <angvoz.dev> |
| Severity: | critical | ||
| Priority: | P3 | CC: | jamesblackburn+eclipse, pawel.1.piech |
| Version: | 7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Luis
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. |