I have experimented a little bit with the strip program, but haven't
gotten it to do what I need:
(a) try to strip the object file and then link it into an executable:
[crash_message]$ g95 -c fprog.f90
[crash_message]$ strip fprog.o
[crash_message]$ g95 fprog.o
/path/gcc-lib/i686-unknown-linux-gnu/4.0.3//libf95.a(main.o): In
function `main':
main.c:(.text+0x3d): undefined reference to `MAIN_'
(b) try to strip the executable:
[crash_message]$ g95 fprog.f90
[crash_message]$ strip a.out
[crash_message]$ a.out
starting prog
At line 10 of file fprog.f90 (Unit 6)
Traceback: not available, compile with -ftrace=frame or -ftrace=full
Fortran runtime error: Expected REAL for item 1 in formatted transfer,
got INTEGER
(F5.2,A5)
Maybe I'm not using strip correctly?
Thanks,
John