Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project generated with cmake for Eclipse CDT

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

like image 640
tambalolo Avatar asked Nov 02 '22 14:11

tambalolo


1 Answers

Try setting CMAKE_BUILD_TYPE to Debug and regenerating/rebuilding project.

like image 119
arrowd Avatar answered Nov 09 '22 15:11

arrowd