I have a project involving
- shared libraries ie:
mylib.so
- (test) program using these shared libraries ie:
test_mylib
When I try to run gdb
on test_mylib
, it prints:
"test_mylib": not in executable format: File format not recognized
When I use the real program (.libs/test_mylib
) directly instead, it still complains:
.libs/test_mylib: can't load library 'libhello.so.0'
How Can I run gdb to debug my program ?
error: libtool: unknown option character `-' in: --mode=execute
(my workaround was to install to a prefix, but perhaps --disable-shared as mentioned below is simpler in the long run) – Egad