eclipse-cdt

Eclipse “crossGCC”

那年仲夏 提交于 2020-01-13 18:02:10
问题 I just downloaded the Eclipse IDE for C/C++ (on Window 7) and trying to create a simple new project. In the tool chains there are "Cross GCC", "Cygwin GCC" and "Microsoft Visual C++". I never heard of the "Cross GCC" before. What is the different between "Cross GCC" and "CygwinGCC" and the normal "GCC"? --ABS 回答1: If you're interested in "normal GCC" at Windows environment, it may be worth to install MinGW (with MSYS) instead of Cygwin. Here is a good discussion on "Cygwin vs MinGW" so you

Eclipse “crossGCC”

我的未来我决定 提交于 2020-01-13 18:02:05
问题 I just downloaded the Eclipse IDE for C/C++ (on Window 7) and trying to create a simple new project. In the tool chains there are "Cross GCC", "Cygwin GCC" and "Microsoft Visual C++". I never heard of the "Cross GCC" before. What is the different between "Cross GCC" and "CygwinGCC" and the normal "GCC"? --ABS 回答1: If you're interested in "normal GCC" at Windows environment, it may be worth to install MinGW (with MSYS) instead of Cygwin. Here is a good discussion on "Cygwin vs MinGW" so you

How to solve Unresolved inclusion: <iostream> in eclipse?

扶醉桌前 提交于 2020-01-13 12:07:12
问题 I built a simple program in eclipse: #include <iostream> using namespace std; int main() { cout << "TEST" << endl; return 0; } It worked in Visual Studio and CodeBlocks, but eclipse is acting weird. it says: Unresolved inclusion: <iostream> I read here: C++ - Unresolved inclusion: <iostream> and here: Unresolved <iostream> in Eclipse, Ubuntu and neither of them worked. Here are screenshots of project properties : edit: I downloaded MinGW and now i have this under Settings : How should i

Eclipse dark theme content assist unreadable

耗尽温柔 提交于 2020-01-13 10:25:27
问题 I'm using Eclipse CDT 4.5.2 with Eclipse Color Theme installed on Windows 7. The problem is that when I use the "Sublime Text 2" theme from Eclipse Color Theme the first item in content assist (Ctrl-Space menu) is unreadable like that. Is there any way I could change specifically that color without changing the overall theme? 回答1: Devstyle has Darkest Dark and Deep Black themes which really improve the dark eclipse themes. The default themes are tailored to ensure that all the colors look

Eclipse - What is exactly a Builder?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 07:47:08
问题 I don't understand what is exactly a builder in CDT, and what is the relationship with the "C/C++ Build" content. I set up SCons in the "C/C++ Build" confuguration. It does work : I made two configurations (release and debug), and my SCons scripts are launched. But as I try now to debug, I am studying these Builders stauuf (I am discovering Eclipse...). The documentation is not clear at all about this point. Thanks for help. 回答1: I'm not exactly sure what your problem is, but I'll try to

How to see static or global variables in Eclipse CDT?

徘徊边缘 提交于 2020-01-12 20:55:09
问题 I have been trying to figure out how to display static variables in the eclipse variable window for the CDT and can't figure out how. The menu button for the CDT doesn't seem to have the java->globals menu. How do I display static/global variables in eclipse CDT debugger? 回答1: Window -> Show View -> Expressions You can add any expression there, so also global variables. 回答2: Arrow down button > Java > Show Constants / Show Static Variables 来源: https://stackoverflow.com/questions/4434107/how

How to make CDT/Eclipse work with C++11 threads?

五迷三道 提交于 2020-01-12 14:12:19
问题 I tried to test an example of C++11 threads in Eclipse. But I got this message when running the program: terminate called after throwing an instance of 'std::system_error' what(): Operation not permitted' My system: ubuntu + gcc 4.7 Program: #include <iostream> #include <thread> void worker() { std::cout << "hello from worker" << std::endl; } int main(int argc, char **argv) { std::thread t(worker); t.join(); } ...and yes, I put -std=c++11 and -pthread inside C/C++ Build -> Settings -> Tool

How to make CDT/Eclipse work with C++11 threads?

感情迁移 提交于 2020-01-12 14:11:27
问题 I tried to test an example of C++11 threads in Eclipse. But I got this message when running the program: terminate called after throwing an instance of 'std::system_error' what(): Operation not permitted' My system: ubuntu + gcc 4.7 Program: #include <iostream> #include <thread> void worker() { std::cout << "hello from worker" << std::endl; } int main(int argc, char **argv) { std::thread t(worker); t.join(); } ...and yes, I put -std=c++11 and -pthread inside C/C++ Build -> Settings -> Tool

stop eclipse CDT from debugging from main

痴心易碎 提交于 2020-01-12 13:53:10
问题 so if I debug my C++ code using eclipse CDT, it appears that it always start the debugging process from the main() function even though there is no breakpoint at the beginning main()... is there a way to have eclipse CDT start to debug from the first breakpoint rather than main()? 回答1: On the menu Run -> Debug Configurations , right click the C/C++ Applications item on the left, and create New configuration. Go to the Debugger tab and uncheck the Stop on startup at checkbox. 来源: https:/

g++ curly quotes displayed incorrectly in console and “Problems” list

主宰稳场 提交于 2020-01-12 07:38:09
问题 Recently, I switched from Visual Studio to Eclipse CDT. I've set it up beautifully such that the G++ compiler from my Cygwin installation can locate and compile my code without ado. There is a minor grievance, however. Each time G++ reports a warning or error, the curly single quotes ‘ and ’ appear as ‘ respectively ’ . It seems like a character encoding problem; G++ or Cygwin is spitting out a character encoding that either CDT or Eclipse doesn't like. This is only relevant Google result