Hi, 
I have a Fortran 77 subroutine (dll).

On windows XP, how  would I 'debug it(Fortran) within R' using gdb?

This is how I made it.
----------------------

R CMD SHLIB main.f

gfortran -m32     -O3  -mtune=core2 -c main.f -o main.o

gcc -m32 -shared -s -static-libgcc -o main.dll tmp.def main.o 
-Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 
-Ld:/RCompile/CRANpkg/extralibs64/local/lib -lgfortran 
-LF:/ProgramFiles/R/R-3.1.1/bin/i386 -lR


Here is the contents of the file  main.f
-----------------------------------------

      SUBROUTINE NGCD(NA, NB, NGCDO) 
        IA = NA
        IB = NB
    1   IF (IB.NE.0) THEN
          ITEMP = IA
          IA = IB
          IB = MOD(ITEMP, IB)
          GOTO 1
        END IF
        NGCDO = IA  
        RETURN
      END

Thank you,
Andre Mikulec
andre_miku...@hotmail.com


                                          
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to