s-news
[Top] [All Lists]

Fortran with "realpr" subroutine

To: s-news@lists.biostat.wustl.edu
Subject: Fortran with "realpr" subroutine
From: "Laura Holt" <lauraholt_983@hotmail.com>
Date: Mon, 23 Aug 2004 00:33:09 -0500
Dear S People:

I wanted to write a Fortran program to accompany an S function.

The final program will include a call to "realpr".
Here is a little test program:

     subroutine silly(x,y,n,m)
     integer n,m
     real x(n),y(n)
     do 11 i=1,n
        y(i)=x(i)**m
11      continue
     call realpr("fake",4,y(2),1)
     return
     end



C:\MinGW\bin>g77 -O2 -c silly.f
g77 -O2 -c silly.f


C:\MinGW\bin>g77 -shared -o silly.dll silly.o
g77 -shared -o silly.dll silly.o
silly.o(.text+0x7e):silly.f: undefined reference to `realpr_'

C:\MinGW\bin>

Is there another way to compile this, or should I just do I "work around" instead the realpr?

Thank you so much!
S + Version 6.2
Sincerely,
Laura Holt
mailto: lauraholt_983@hotmail.com

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


<Prev in Thread] Current Thread [Next in Thread>