5

I followed How to configure a C/C++ project with Eclipse and CMake article to import my project which was generated with cmake to Eclipse CDT. All went fine except when debugging.

I get this error when trying to debug

No source available for "main() at 0x5bca71"

And in gdb console window, here's the message

The target endianness is set automatically (currently little endian)
No source file named /home/.../Desktop/GP/Test/src/Main.cpp.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

I'm using Eclipse Kepler and cmake version 2.8.10.1 in Linux Mint 15

3

2 Answers 2

1

Try setting CMAKE_BUILD_TYPE to Debug and regenerating/rebuilding project.

0
1

After a whole day of struggling, I switch to Kdevelop4. Importing a cmake project is just as simple as opening the CMakeList.txt file and Kdevelop will do the rest for you. It is so fast, especially its code completion.

Not the answer you're looking for? Browse other questions tagged or ask your own question.