I have a program, written in fortran90, previously successfully compiled on a compaq compiler and working, that I'm now trying to compile with gfortran. I can compile the code to an .exe and run it. It works fine until a certain point in the routine and then an error is thrown.
My current configuration:
- Windows 7
- Eclipse Juno with CDT
- Photran
- Cygwin installation with gfortran compiler and GDB debugger (gdb.exe)
- Configurations for the debugger:
- GDB command set: Standard (Windows)
- Protocol: mi
- Shared libraries: don't load shared library symbols automatically (when activating this, no changes are noted).
When running the debug command I get the following output:
.gdbinit: No such file or directory.
Reading symbols from /cygdrive/c/Users/thys/Documents/doctoraat/12_in progress/Hamfem/Debug/Hamfem.exe...done.
auto-solib-add on
Undefined command: "auto-solib-add". Try "help".
Warning: C:/Users/thys/Documents/doctoraat/12_in progress/Hamfem/Hamfem/in: No such file or directory.
[New Thread 5816.0x1914]
[New Thread 5816.0x654]
Basicly that leaves me with 2 questions:
- Where can I find the .gdbinit file in the cygwin installation?
- Are there any other possible errors in my setup, or points to think about?
Did you add the debugging information when compiling? When using gdb in console it shouldn't be a problem, except looking at memory addresses and a lot of gibberish, but there could be complications from using Eclipse...