# SDK examples don't compile for debug

Hi everyone,

I know that there are several posts with similar topic, but none of the solutions suggested works.
I am trying to compile the SDK examples for debug. (linux)

usr/bin/ld: cannot find -lshrutil_x86_64D

compiling for release works fine.
I compiled the tools in C/common/ but there is no such file, (there is however a ‘libcutil_x86_64D.a’ file)
Is there something wrong in the makefile?
Something else I missed?

Ariel

Hi guys,

After I wrote my first post - I edited the Makefile
(placed in C/common/common.mk)
and just commented out the line with the reference to the missing file
(LIB += -lcutil_(LIB_ARCH)(LIBSUFFIX) -lshrutil_(LIB_ARCH)(LIBSUFFIX))
Now the examples compile and work.
I am not sure though this is the best solution. Does someone know if I am
missing some installation?

Thanks,
Ariel

Hi guys,

After I wrote my first post - I edited the Makefile
(placed in C/common/common.mk)
and just commented out the line with the reference to the missing file
(LIB += -lcutil_(LIB_ARCH)(LIBSUFFIX) -lshrutil_(LIB_ARCH)(LIBSUFFIX))
Now the examples compile and work.
I am not sure though this is the best solution. Does someone know if I am
missing some installation?

Thanks,
Ariel

Hi Ariel, as I remember, the file libshrutil_x86_64D.a is located in \$SDK_ROOT/shared/lib, not in \$SDK_ROOT/c/common/lib. Just search the /shared folder, if there’s no such file, re-build it.