Skip to content

Fortran subroutines dblepr, realpr, intpr

2 messages · David Firth, Brian Ripley

#
Further to my earlier request for help (see below): I should have 
said what operating system and compiler I am using.

I am working with the (mingw) g77 compiler under Windows 2000, and 
following the approach outlined in Venables & Ripley's "S 
Programming", p243.  That is, with my Fortran code in testit.f, I say

	g77 -O2 -c testit.f
	dllwrap -o testit.dll --export-all-symbols testit.o

which works fine when I don't have any print statements in testit.f, 
but if for example I call INTPR in testit.f the dllwrap step fails 
with the complaint
	undefined reference to `intpr_'
	dllwrap: gcc exited with status 1

Any hints will be much appreciated.  As I said earlier, I am just 
beginning with this.

David

  
    
#
On Wed, 9 May 2001, David Firth wrote:

            
You need to link against -lR.  The esiest way is to use a small package and
install that.   It will make libR.a (in .../src/gnuwin32) as needed,
or you can run make libR.a there.

If that is not enough of a hint we can talk directly.