gdb giving "Not executable format" error with .so
Hi,
I'm new to Linux, and playing with my first few programs. I'm getting a >> "<myPath>/helloWorld": not an executable format: File Format not recognized << error from gdb when it attempts to load the executable. Well, to be more precise…. If my HelloWorld.c is: Code:
#include <stdio.h> Code:
#include <stdio.h> for what it's worth, I'm using Anjuta to 'build' my program (which calls the gcc for me). Any thoughts? Thanks. |
Quote:
Is ./HelloWorld realy a shell script which calls the real executable? |
Perhaps I misread the OP, but it would seem that there is an issue with debugging the dc1394 library. It is quite possible (actually, highly probable) that the library was not compiled with the '-g' option which includes symbolic information of the code.
If the source code of the library is available, try rebuilding it with the -g gcc option. |
Maybe the library just needs 'x' permission - ldd complains about .so files not having 'x' permission.
|
D'oh -- I'm such a newb.
Timothy --> you nailed it. That's exactly what was happening. Sergi --> that was my first guess too, but no luck. Thanks for the replies guys. /Paul |
All times are GMT -5. The time now is 04:43 AM. |