eclipse-cdt

Linked resource absolute paths in generated makefiles in eclipse cdt

烈酒焚心 提交于 2019-12-13 14:15:29
问题 I am trying to add external cpp files as linked resources to an eclipse CDT project. I have managed to have relative paths for these cpp files in the eclipse project (files), but these are automatically expanded into absolute paths in the generated makefiles. We use the makefiles in a continuous integration system, where these absolute paths are not acceptable. I have tried to set up these paths to be relative to build variables, environment variables and even linux system variables, without

can't debug small program on eclipse helios cdt using mingw/gdb under windows, console freezes

余生颓废 提交于 2019-12-13 12:24:31
问题 I've been trying to use Eclipse CDT to do some c++ examples, i can run them just fine with the run command, but whenever i try to Debug, the console window freezes up, I'm able to input, but the program doesn't continue. When I debug, i get the following output on the console window (no breakpoints, but breaks on main because of default settings): Hello, world put your name: 15^running The continue button is disabled and doesn't do anything when I input something and hit enter . The 15 is a

Maven offline build fails when it encouners google guava url with invalid character

不羁的心 提交于 2019-12-13 08:56:12
问题 I need to make my Tycho-Maven build work in offline mode, so I can deploy it to environments with no Internet connection and let people run the build from the previously downloaded artifacts for the third party code my app depends on. The product being built is an Eclipse RCP product, using the org.eclipse.tycho:target-platform-configuration plug-in to load the dependencies from an RCP target file. First I run mvn -Dmaven.repo.local=/some/path/ -DgeneratePom=true clean install to create the

Eclipse CDT cannot debug to step into function definition in same directory

喜你入骨 提交于 2019-12-13 07:42:38
问题 I am new to eclipse cdt. I did a little research but did not find an answer. I wonder, say I have a project/simpleClient/simpleClient.cc that calls functions under project/src/somefile.cc . When I put a debugger in simpleClient.cc, and call function A, I only know by right clicking the function name will take me to the function definition, but I actually want to step into it to the src folder code and see how the program runs. Are there any ways please? Thank you. 回答1: Under Run -> Debug

eclipse + cdt + mingw + windows error “undefined reference to `WinMain@16'” on build

不想你离开。 提交于 2019-12-13 05:30:02
问题 I installed eclipse, cdt and mingw on my windows XP machine. added C:\MinGW\bin to my PATH. Created a new c++ project, with one file in it, test.c. the code in it: int main(){ int i=1; } Trying to build, I get the error: /mingw/lib/libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to 'WinMain@16' Notice it's not complaining about test.c but rather about some main.c in one of mingw's libs. What am I doing wrong? 回答1: You need to save the .c file first. 回答2: well, the solution was

Static linking of Boost and OpenCV libs with Eclipse CDR. errors

走远了吗. 提交于 2019-12-13 03:59:09
问题 I try to link my project statically with the Boost and OpenCV libs in Eclipse CDT. I have searched Google which libraries I have to add and added them to the linker. But the error messages are still there. What am I doing wrong? make all Building target: CalibServer Invoking: GCC C++ Linker g++ -L/usr/local/lib64 -static -o"CalibServer" ./src/CalibServer.o -lhighgui -lz -lrt -ltiff -ljpeg -lpng12 -lpthread -lcv -lboost_iostreams -lboost_date_time -lboost_regex -lcxcore -lcvaux -lboost_thread

Eclipse-Plugin using CDT: Associate file extension with custom CDT Language

女生的网名这么多〃 提交于 2019-12-13 03:48:54
问题 I can configure my plugin so that files with certain extensions are opened in the CDT CEditor. <editor class="org.eclipse.cdt.internal.ui.editor.CEditor" contributorClass="org.eclipse.cdt.internal.ui.editor.CEditorActionContributor" default="true" filenames="*.ext, *.c" icon="icons/small.png" id="de.blub.ide.exteditor" name="EXT Editor"> </editor> This works, somehow, but I want to extend the CEditor to have more features and change some existing functionality. For example, I am not content

C++ Eclipse OpenCV : .exe file and binaries generated, but no image displayed

二次信任 提交于 2019-12-13 02:59:30
问题 Here's my code (the first DisplayImage.cpp code in the OpenCV documentation) /* * DisplayImage.cpp * * Created on: Dec 25, 2011 * Author: Arcturus */ #include <iostream> #include <opencv2\opencv.hpp> using namespace cv; using namespace std; int main(int argc, char** argv){ Mat image; image = imread(argv[1], 1); if(argc!=2 || !image.data){ cout<<"no image data"; return -1; } namedWindow("Display Image", CV_WINDOW_AUTOSIZE); imshow("Display Image", image); waitKey(10000); return 0; } Build

Eclipse CDT ASTRewrite not working

假如想象 提交于 2019-12-13 02:15:42
问题 I want to add some code to the C source code, so I try to use ASTRewrite. My Github project: cdt-rewrite My code: import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import org.eclipse.cdt.core.dom.ast.ASTVisitor; import org.eclipse.cdt.core.dom.ast.IASTIfStatement; import org.eclipse.cdt.core.dom.ast.IASTStatement; import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit; import org.eclipse.cdt.core

How to use sqlite3.c and sqlite3.h in eclipse C/C++ project

强颜欢笑 提交于 2019-12-13 01:52:53
问题 I am trying to use amalgamated version of sqlite3.c and sqlite3.h in my C/C++ project. It has code in both C and C++. I am using eclipse IDE in UBUNTU 12.04. Now my problem is that after having include sqlite3.h in my file where I need sqlite3.c functions and having added ld and pthread libraries in linker, i am still getting errors and cant build the project. This is weird and should not happen. Please take a look at following screenshots that explain my problem. ****************************