eclipse-cdt

Unresolved Inclusion libxml++ Eclipse Mars CDT

▼魔方 西西 提交于 2021-01-29 08:01:34
问题 I installed Eclipse Mars CDT and libxml++-3.0.0 on my Ubuntu 16.04 machine and I am having issues with an 'Unresolved Inclusion' error for the #include in my C++ code. I added libxml++ to the path as well by going to the project properties->C/C++ General->Paths and Symbols->GNU C++ 'Add...'. I did the same for libxml2 as well since libxml++ is dependent on libxml2. However, I am still having this 'Unresolved Inclusion' error, so I am unable to build my project. Any ideas on how I can solve

How to programatically access the Eclipse variable pool?

拟墨画扇 提交于 2021-01-29 03:12:24
问题 I have registered a handler through the org.eclipse.ui.handlers extension point and added an enabledWhen condition which checks the variable selection in the Eclipse variable pool. This works perfectly fine, but now I want to replicate this behavior to my SWT buttons which are displayed in a view. My question is as follows: How can I access the Eclipse variable pool in order to get the selection variable to listen on selection events and subsequently call the button.setEnabled(true/false) .

Eclipse CDT - Which extension point to provide per-file build settings?

若如初见. 提交于 2021-01-28 18:02:22
问题 In eclipse, my plugin is trying to programmatically set the build settings (defines, include paths) for each C/C++ source file separately. I have found the CExternalSettingsProvider extension point, but the getSettings method only receives the build configuration and an IProject. Is there an extension point with a method that receives the actual file being built, so that individual settings can be provided for it? 来源: https://stackoverflow.com/questions/59861100/eclipse-cdt-which-extension

Eclipse/CDT Pretty Print Errors

亡梦爱人 提交于 2021-01-28 12:41:11
问题 Let me start by saying that I've scoured other questions on here that are incredibly closely related, but haven't lent themselves to resolving my issue. Setup: Win7 laptop, SSH/X11 to CentOS 6.4 Final running Eclipse Kepler SR2 w/ CDT 8.3 GDB 7.2 Managed corporate server that does not have Internet access (so no svn co... ) I am new to using Eclipse/CDT, but familiar with GDB. When I try to debug an application that uses STL, upon the first occurrence of an STL object, I get the below error(s

How to print UTF-8 characters on console using C

两盒软妹~` 提交于 2021-01-27 05:46:23
问题 I have a C application where I receive a UTF-8 string aover a socket as a char*. Now I want to print it on the console using Eclipse CDT. How can I do this? What I get is usually something like "Günther" what should be "Günther" Thanks a lot. 回答1: The best answer given above was by Joachim Isaksson. Thank you, this ideed seems to be the problem. I solved it in Eclipse by setting the "Encoding" settings for the run configuration to UTF-8. 来源: https://stackoverflow.com/questions/14802845/how

How to print UTF-8 characters on console using C

只谈情不闲聊 提交于 2021-01-27 05:46:16
问题 I have a C application where I receive a UTF-8 string aover a socket as a char*. Now I want to print it on the console using Eclipse CDT. How can I do this? What I get is usually something like "Günther" what should be "Günther" Thanks a lot. 回答1: The best answer given above was by Joachim Isaksson. Thank you, this ideed seems to be the problem. I solved it in Eclipse by setting the "Encoding" settings for the run configuration to UTF-8. 来源: https://stackoverflow.com/questions/14802845/how

OMNeT++: Error in module during network setup: Class not found

断了今生、忘了曾经 提交于 2021-01-24 08:49:25
问题 I created my first OMNeT++/veins project, but can’t start the simulation. Can you help me? I would like to change my question - is there a simple way to create a project, similar to RSUExampleScenario of veins, not under veins/examples/myfolder, but in a separate project and workspace? And what steps must I do for it? I wanted to create a project similar to RSUExampleScenario from veins, but with other scenario and using other OMNeT++ modules. As I created my project under veins/examples

OMNeT++: Error in module during network setup: Class not found

a 夏天 提交于 2021-01-24 08:47:05
问题 I created my first OMNeT++/veins project, but can’t start the simulation. Can you help me? I would like to change my question - is there a simple way to create a project, similar to RSUExampleScenario of veins, not under veins/examples/myfolder, but in a separate project and workspace? And what steps must I do for it? I wanted to create a project similar to RSUExampleScenario from veins, but with other scenario and using other OMNeT++ modules. As I created my project under veins/examples

How to use gmp-mpir-mpfr in eclipse correctly?

点点圈 提交于 2020-12-15 06:58:50
问题 I've managed to to use mpfr-mpir-gmp in CodeBlocks but I want to in eclipse C++: When I compile the code it compiles and build but if I run the project it says: "error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory". So can anyone show me how to configure eclipse to use gmp-mpifr-mpir correctly? If I compile from a terminal: g++ -lmpir -lmpfr -lgmp myEclpiseMPFRMPIRproj.cpp then : ./a.out It works fine and doesn't complain about the

How to use gmp-mpir-mpfr in eclipse correctly?

家住魔仙堡 提交于 2020-12-15 06:58:30
问题 I've managed to to use mpfr-mpir-gmp in CodeBlocks but I want to in eclipse C++: When I compile the code it compiles and build but if I run the project it says: "error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory". So can anyone show me how to configure eclipse to use gmp-mpifr-mpir correctly? If I compile from a terminal: g++ -lmpir -lmpfr -lgmp myEclpiseMPFRMPIRproj.cpp then : ./a.out It works fine and doesn't complain about the