eclipse-cdt

Eclipse C++: Symbol 'std' could not be resolved

岁酱吖の 提交于 2019-12-17 17:44:07
问题 I am getting this error in the TestExecute.cpp - "Symbol 'std' could not be resolved" CODE #include <iostream> using namespace std; I just created a executable project in Eclipse (in Windows 7) as shown below. It seems like I am selecting a toolchain that is not supported. Is it so? I have installed Cygwin and it is available in preferences. EDIT : Based on @RobertoWilko comment, removing the line "using namespace std; " removed the error. But the binary is not created. "Launch Failed. Binary

Eclipse CDT “Symbol NULL could not be resolved”

北慕城南 提交于 2019-12-17 16:27:33
问题 I just installed Eclipse CDT with MinGW . All the environment variables are set, includes, etc. Tried running a hello world and everything seems to be fine. I tried loading a C project that I had before in my computer, it seems to load everything fine, yet I get the following error with the NULL symbol : Symbol 'NULL' could not be resolved Any insights? Thanks! 回答1: NULL is usually defined in stddef.h. This file is also usually included with stdlib.h and stdio.h. And, you could always do this

Eclipse CDT: Unresolved inclusion of stl header

删除回忆录丶 提交于 2019-12-17 10:35:09
问题 I'm trying to use Eclipse to edit sources, compiled under C++ Builder, but stuck with Unresolved inclusion problem. For example, code like: #include <vector> Gives Unresolved inclusion: <vector> error in Eclipse IDE. C++ Builder indeed has no vector file, instead it has vector.h which is used by compiler. Eclipse IDE gives no error if I write #include <vector.h> How do I tell Eclipse to use vector.h when it sees #include <vector> ? 回答1: This allowed me to avoid Eclipse "Unresolved inclusion"

Enable C++11 in Eclipse CDT (Juno/Kepler/Luna) indexer [duplicate]

点点圈 提交于 2019-12-17 02:11:43
问题 This question already has answers here : How to enable C++11/C++0x support in Eclipse CDT? (16 answers) Closed 6 years ago . How do I enable support for the new C++ standard on the Eclipse CDT indexer in Juno/Kepler/Luna? 回答1: Note that this question (and answer) only deals with the Eclipse indexer which is used to highlight errors before compilation takes place. The C++ compiler settings are not changed! (Thus, compilation could still fail because of missing C++11 settings, but have a look

Scanf doesn't appear to work in debug mode in Eclipse CDT with GDB

邮差的信 提交于 2019-12-14 02:05:44
问题 When running this code in debug mode: #include <stdio.h> #include <stdlib.h> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); printf("Values entered: %d %d %d\n", a, b, c); return EXIT_SUCCESS; } The program would not request any user input and would just output: Values entered: 18 78 2130026496 回答1: I had the same problem. Figured out that you have to clear output buffer if a newline character is used or if an input function is used. So, do this way.. #include <stdio.h> #include

including Python.h in C++ file CDT

亡梦爱人 提交于 2019-12-14 01:49:27
问题 I apologize if this is a silly question. But I tried to google this and I couldn't find anything to point me in the right direction. I'd just like to understand what I need to do to 'set-up' cdt to 'understand' my python.h include. the erroneous statement is this: #include <Python.h> but I also tried #include "Python.h" And CDT responds with an error sign on the side stating: Multiple markers at this line - fatal error: Python.h: No such file or directory - Unresolved inclusion: <Python.h> I

I cannot compile helloworld.cpp with eclipse & CDT on mac

左心房为你撑大大i 提交于 2019-12-13 18:43:02
问题 compiler says: Symbol 'std' could not be resolved Symbol 'cout' could not be resolved Symbol 'endl' could not be resolved It seems that it is a C compiler, but I really installed everything listed in CDT. I tried searching but it's all about windows. I've installed all the plugins in CDT. Something strange is that the file was once compiled and printed "Hello world". I can't understand what is happening. My os is osx lion (10.7.3). Hope someone can help me! Thanks! My eclipse version is 3.7.

g++ linking issues: undefined reference to functions

亡梦爱人 提交于 2019-12-13 16:49:57
问题 I used CMake and Visual C++ to build the HyDE library. Then, still in VC++, I was able to successfully create code and build an executable that links into HyDE.lib and the HyDE header files. I then discovered that in order to work with others at my company, it would be preferable to develop in Eclipse CDT. Knowing very little about Eclipse CDT, I created a default hello world project, deleted the code and then dumped in all of my code into the src folder. Then I attempted to change the

Using CDT parser out of Eclipse(How to make project?)

亡梦爱人 提交于 2019-12-13 16:45:21
问题 I am trying to parse C++ source by using CDT parser apart from eclipse. To get AST, I have to make, index, IncludeFileContentProvider. To make index, I need to make project. I think this project means eclipse project. But I am using CDT parser outside of eclipse. In this case how to make project. 回答1: Here is an example of CDT parser as you want. import java.util.HashMap; import java.util.Map; import org.eclipse.cdt.core.dom.ast.ASTVisitor; import org.eclipse.cdt.core.dom.ast.IASTDeclaration;

Eclipse CDT and unknown tags

一世执手 提交于 2019-12-13 15:14:12
问题 Currently we are looking at moving our development environment from CodeWright (which has long since been abandonned by Borland) and moving to Eclipse. We are using Eclipse for Perl, PHP and some Windows C++ development with much success. The issue comes up however with our embedded environment which uses - in the makefile - some defines that Excel does not seem to understand. Here's an example (whith values changed to protect the guilty): F_FOO unsigned char foo(ptr *this) { } where F_FOO is