# gdb/kdevelop and make dbg=1

**URL:** <https://forums.developer.nvidia.com/t/gdb-kdevelop-and-make-dbg-1/348>\
**Category:** CUDA Programming and Performance\
**Created:** [March 6, 2007, 3:23pm UTC](https://forums.developer.nvidia.com/t/gdb-kdevelop-and-make-dbg-1/348 "2007-03-06T15:23:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![alex.be](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alex.be](https://forums.developer.nvidia.com/u/alex.be)\
**Post date:** [March 6, 2007, 3:23pm UTC](https://forums.developer.nvidia.com/t/gdb-kdevelop-and-make-dbg-1/348/1 "2007-03-06T15:23:25Z")

</div>

I am using kdevelop and in order to use the debug symbols and need to set the “dbg=1” flag for make.

if I put it into Project-\>Project Options-\>Build Options-\>Make and set the Additional Make options to “dbg=1”, or even if I directly use the “make dbg=1” command in the terminal, I get the following error

g++ -m32 -fPIC -o …/…/bin/linux32/debug/gpumain gpumain.c …/…/bin/obj/debug/mylib.cu\_o -L/usr/local/cuda/lib -L…/…/lib -lcuda -lcudart -lGL -lGLU -l cutilD

/usr/bin/ld: cannot find -lcutilD

collect2: ld returned 1 exit status

make: \*\*\* […/…/bin/linux32/debug/gpumain] Error 1

if I do not build with dbg=1 i don’t create debug symbols and gdb doesn’t work ( it works and creates a binary without error, but I need to debug it now)

if I just “Make” the lib is -lcutil and not -lcutilD which I don’t seem to have

---

_[View the full topic](https://forums.developer.nvidia.com/t/gdb-kdevelop-and-make-dbg-1/348)._
