danielepanozzo / cg-old

43 stars 16 forks source link

Eclipse-CDT #1

Closed jw3877 closed 8 years ago

jw3877 commented 8 years ago

Has anyone had success importing the project into Eclipse-CDT?

git clone --recursive https://github.com/danielepanozzo/cg cd cg mkdir A1_build cd A1_build/ cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../Assignment_1

_Note: It will complain if the build directory is located in Assignment_1 (so I changed to cg/A1_build): CMake Warning in CMakeLists.txt: The build directory is a subdirectory of the source directory.

This is not supported well by Eclipse. It is strongly recommended to use a build directory which is a sibling of the source directory._

Then, from Eclipse.. File -> Import -> General -> Existing Projects into Workspace and choose A1_build as the root directory.

It looks like the project loads but I get 1 error when trying to build:

Description Resource Path Location Type Invalid arguments ' Candidates are: void write_matrix_to_png(const Eigen::Matrix<double,int-1,int-1,int0,int-1,int-1> &, const Eigen::Matrix<double,int-1,int-1,int0,int-1,int-1> &, const Eigen::Matrix<double,int-1,int-1,int0,int-1,int-1> &, const Eigen::Matrix<double,int-1,int-1,int0,int-1,int-1> &, const std::__cxx11::basic_string<char,std::char_traits,std::allocator> &) ' main.cpp /Assignment1-Debug@A1_build/[Source directory]/src line 32 Semantic Error

Is there an Eclipse setting I need to change somewhere?

I'm running Eclipse Neon v4.6 under Fedora 24, with the following eclipse-cdt package installed:

Name : eclipse-cdt Arch : x86_64 Epoch : 1 Version : 9.0.0 Release : 1.fc24 Size : 47 M Repo : @System From repo : updates Summary : Eclipse C/C++ Development Tools (CDT) plugin URL : http://www.eclipse.org/cdt License : EPL and CPL Description : Eclipse features and plugins that are useful for C and C++ : development.