eclipse-cdt

Eclipse CDT shows semantic errors, but compilation is ok

随声附和 提交于 2019-12-28 02:44:51
问题 I have installed Eclipse Indigo for C/C++ Linux developers on Ubuntu 10.04 x86. When I use common predefined macro __BASE_FILE__ Eclipse says Symbol '__BASE_FILE__' could not be resolved , but compilation is OK. I have to use it so often in my code and Eclipse fills my screen with red lines and bug icons :) How can I fix this? 回答1: Not sure if this addresses your specific problem, but I also had semantic errors. They just came out of the blue after having a working project. Anyway, I fixed it

Clean Eclipse Index, it is out of sync with code

狂风中的少年 提交于 2019-12-28 02:26:04
问题 I'm using Eclipse with C++ code via linked resources on Linux. The code analysis index seems to be corrupted (Goto definition lands the cursor close to, but not on, the definition) Refreshing resources doesn't fix it, neither does restarting Eclipse. Is there a way to flush the index and rebuild it? 回答1: Right-click on your project, go under the Index submenu, and choose either "Rebuild," "Update with modified files," or "Freshen all files." I don't know the difference between those three

Trouble setting up JNI project on OS X

两盒软妹~` 提交于 2019-12-25 16:52:11
问题 I've been following this (http://www.bogotobogo.com/cplusplus/eclipse_CDT_JNI_MinGW_64bit.php) tutorial for setting up a JNI project for a c++ / java project I'm working on. I've been having some trouble getting it working though. I followed the steps and I'm getting an error when I try to build my makefile: "No classes were specified on the command line. Try -help". I checked if my path was set in environment and it wasn't, so I set it to /usr/bin. I'm not sure if that's right however, so

Compilation error after including <map>

霸气de小男生 提交于 2019-12-25 04:18:34
问题 I just started with C++, trying to learn some basics. Right now compiling using gcc version 5.2.1 in Eclipse, project is compiled with c++11 parameter. Now the include problem occurs when I try to #include <map> (it doesn't really matter where as long as compiler gets into it, I don't even use map yet, just trying to include it). As far as I can understand there's a problem with map itself, but it doesn't seem right. Short failure snippet here. 08:54:59 **** Incremental Build of configuration

unresolved external symbol in eclipse cdt

流过昼夜 提交于 2019-12-25 03:24:32
问题 I try to build cpp file using eclipse cdt. Linker throws "unresolved external symbol", however path to lib file that contains implementation for function is listed in LIB environment variable on Project properties->C/C++ Build->Environment What am I doing wrong? UPD I try to build file. There is lib RpcRT4.Lib on the path C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\ And linker fails: **** Build of configuration Debug for project test cpp **** **** Internal Builder is used for build ****

Tab completion and automatic Content Assit in Eclipse Juno CDT

风格不统一 提交于 2019-12-25 02:58:13
问题 I have been using Eclipse CDT for a while now, and the fact of the matter is that, coding can be very slow in the IDE (I use it for the debugger). What I mean by this is, that the auto-pop up (content assist) functionality only works when certain characters are input [::,->,.] . In Indigo, you could configure the IDE such that it would pop no matter what you type, without pressing Ctrl + SPACE . So, is there a way to bring this back in Juno? A step by step guide would be appreciated. Secondly

Can't add static library in Eclipse Juno 8.1.1 CDT C++ project

浪尽此生 提交于 2019-12-25 02:24:08
问题 I have been trying to find a guide how to link a static library to my Eclipse CDT project but I was not able to find one. I have tried both with Visual Studio 2010 compiler and MiNGW. I use Windows and Eclipse Juno 8.1.1 , under Project Settings -> C/C++ Build -> Settings I have something like this : Lib manager : Path and symbols: 回答1: You have to add the library name without lib and .a in Libraries (-l) and adding the path in Libraries search path (-L). However, this question is resolved

Eclipse CDT displays semantic error, but builds successfully

青春壹個敷衍的年華 提交于 2019-12-25 00:17:47
问题 Before I update g++ from 4.6 to 4.7, my eclipse indigo CDT ran normally. After updating, it displays semantic errors, but builds and runs successfully. My code is that using my_type = int; Eclipse displays warning "syntax error" I updated g++ 4.7 as default compiler. 回答1: I fixed it by updating to eclipse juno . Before, I used eclipse helois what only supports C/C++ development tool 7.0 来源: https://stackoverflow.com/questions/15612673/eclipse-cdt-displays-semantic-error-but-builds

unable to install CDT in Eclipse Luna

一个人想着一个人 提交于 2019-12-24 22:25:37
问题 I have just downloaded Eclipse Luna in his package Eclipse IDE for Java EE Developers. I want to add Eclipse CDT to program in C/C++ (I know I can download CDT package, but I prefer this way, don't offer that option as an answer please). When I tried to install it using Marketplace I didn't found Luna version. If I use Luna update site, that retrieves CDT 8.4.0.201406111759, I got this error: An error occurred while collecting items to be installed session context was:(profile=epp.package.jee

Eclipse CDT - new template or “project type”

假如想象 提交于 2019-12-24 17:00:02
问题 Using Eclipse Helios and CDT 7. Is it possible to save a project as a new template/project type? When you go to create a new project, a dialog opens and you select a project type (Executable -> empty project, etc.) I would like to add one. Point is, I'm playing with SDL, and I know I'll be making a lot of new projects. I don't want to have to go into the preferences each time and set up the compiler/linker to find the files. I've been looking for a while, but have had no luck finding anything