eclipse-cdt

Invalid template arguments on map std::map< std::string, Stock*> &stocks

南笙酒味 提交于 2020-01-03 09:46:11
问题 I have the declaration (or similar) std::map< std::string, Stock*> &stocks; throughout my code. Eclipse does not like this and produces a "Invalid template arguments" error. Stock is declared as: class Stock { public: Stock(std::string, qbbo::Financial_status_indicator, qbbo::Security_class, qbbo::Current_trading_state, qbbo::Market_category, qbbo::Reg_sho_action); ~Stock(); void setFinancialStatusIndicator(qbbo::Financial_status_indicator financialStatusIndicator); void setSecurityClass(qbbo

Eclipse CDT error: “Symbol 'XXX' could not be resolved”

本秂侑毒 提交于 2020-01-03 03:07:07
问题 I have an embedded C project that builds and runs just fine using make on the console, but Eclipse CDT is giving me errors. In main.c, this function uses a macro, APP_BUTTON_INIT: static void buttons_init(void) { static app_button_cfg_t buttons[] = { {SIGNAL_ALERT_BUTTON, false, NRF_GPIO_PIN_NOPULL, button_event_handler}, {BONDMNGR_DELETE_BUTTON_PIN_NO, false, NRF_GPIO_PIN_NOPULL, NULL} }; APP_BUTTON_INIT(buttons, sizeof(buttons) / sizeof(buttons[0]), BUTTON_DETECTION_DELAY, false); } The APP

Why doesn't MinGW show up in the list of Eclipse/Indigo CDT Toolchains?

只愿长相守 提交于 2020-01-02 04:04:35
问题 I am trying to set up a C/C++ development environment on Eclipse (Indigo) running on my Windows 7 desktop. I have installed MinGW onto my C drive per the instructions at eclipse.org, and added the environment variable *MINGW_HOME* set to C:\MinGW and added C:\MinGW\bin to my path. When I run eclipse and try to create a new C or C++ project, I should be seeing MinGW as one of the available Toolchains in the project creation wizard dialog. Instead, all I see in the list of available toolchains

Where to find the parsed Boost.Test output in Eclipse

落花浮王杯 提交于 2020-01-02 01:10:30
问题 There is already a thread here that partially answers my question . On Eclipse 3.7.2 I followed the approach provided there and I could successfully accomplish the steps creating and setting up a new error parser and adding it to my current project. After executing my Boost.Test (boost rel. 1.48.0) Unit Test, on the Eclipse console I get the same output as the output I get when no parsing is done (e.g. when executing the Unit Test outside Eclipse (e.g. on a Linux terminal)). I searched for a

Get Eclipse CDT + boost::shared_ptr<T> to work with syntax completion?

泪湿孤枕 提交于 2020-01-01 16:26:33
问题 How to get Eclipse CDT to treat shared_ptr as T * for syntax completion? I'm using windows in this instance. I have 1.39 in the "Program Files" folder. I am about to try 1.37. I am using the Galileo release of Eclipse. Also, I am only editing and browsing the source in Eclipse and building in VC++ Express. (but that is another story) 回答1: What version of boost are you using? According to this thread: Turns out there is something about Boost 1.39 that the CDT indexer does not like. If I allow

Eclipse CDT setup for valgrind + gdb

 ̄綄美尐妖づ 提交于 2020-01-01 11:32:27
问题 How can I debug a valgrind run with gdb in Eclipse? I start the program like this: Terminal A: valgrind vgdb=yes --vgdb-error=0 ./a.out It can debug it from another terminal like this: Terminal B: gdb ./a.out target remote |vgdb But I can't get this to work in Eclipse... So, I want to do graphically in Eclipse what I can do via command line in terminal B. I tried many ways to set up debug configurations in Eclipse, but I can't get it to work. The closest I got was via "C++ Attach to

refresh eclipse cdt system includes

人走茶凉 提交于 2020-01-01 09:12:09
问题 I'm using ecipse cdt developing c++ program. A problem is I moved all my workspace and eclipse package from turbolinux to centos linux. Then it cause a problem, that is system includes are different, but eclipse didn't refresh the include paths. And all the std container classes can not be solved. Anyone know how to fix this problem? 回答1: I was recently bitten by this one myself (actually came to this site in search of an answer ;-) so I'll share what I found: (these steps reflect Eclipse

refresh eclipse cdt system includes

北慕城南 提交于 2020-01-01 09:12:04
问题 I'm using ecipse cdt developing c++ program. A problem is I moved all my workspace and eclipse package from turbolinux to centos linux. Then it cause a problem, that is system includes are different, but eclipse didn't refresh the include paths. And all the std container classes can not be solved. Anyone know how to fix this problem? 回答1: I was recently bitten by this one myself (actually came to this site in search of an answer ;-) so I'll share what I found: (these steps reflect Eclipse

Type 'uint32_t' could not be resolved

∥☆過路亽.° 提交于 2020-01-01 05:43:09
问题 I am working on a C++ program in Eclipse (3.8.1) CDT. I am using the gcc compiler on Debian 8. I'm also using an open source library called opendnp3 written in C++, which requires uint32_t to resolve as it's a parameter in several method calls and constructors. In the opendnp objects, intellisense doesnt list __uint32_t however, DOES resolve. The type is defined in <cstdint> ( <cstdint> resolves just fine). I can open the declaration and clearly see ' using ::uint32_t; ' in there. In my

MinGW/Eclipse ld.exe does not find libraries

妖精的绣舞 提交于 2020-01-01 04:37:30
问题 I am using Eclipse CDT to try to compile a project with the Ogre 3D engine. But somehow mingw is not able to find the static libraries I link against. These are the error messages: c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lzziplib_d c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lzlib_d c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find -lfreetype_d ...etc. The list goes on like this