The R Project SVN R

Rev

Rev 43205 | Rev 47689 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43205 Rev 43404
Line 28... Line 28...
28
================
28
================
29
 
29
 
30
You may if you prefer use Visual C++ to make the DLLs (unless they use
30
You may if you prefer use Visual C++ to make the DLLs (unless they use
31
Fortran source!). The notes here were tested with VC++6.
31
Fortran source!). The notes here were tested with VC++6.
32
 
32
 
33
First build the import library Rdll.lib by
33
First build the import library Rdll.lib by (from the sources)
34
 
34
 
35
	make R.exp
35
	make R.exp
36
 
36
 
37
	lib /def:R.exp /out:Rdll.lib
37
	lib /def:R.exp /out:Rdll.lib
38
or, depending on your version of VC++
38
or, depending on your version of VC++
39
	link /lib /def:R.exp /machine:x86 /out:Rdll.lib
39
	link /lib /def:R.exp /machine:x86 /out:Rdll.lib
40
 
40
 
41
(Another, less reliable, way to make R.exp is to use pexports.exe from
41
Another way to make R.exp is to use pexports.exe from mingw-utils,
42
mingw-utils.)
42
e.g. pexports R.dll > R.exp.
43
 
43
 
44
Then you can compile the objects and build the DLL by
44
Then you can compile the objects and build the DLL by
45
 
45
 
46
	cl /MT /Ox /D "WIN32"  /c *.c
46
	cl /MT /Ox /D "WIN32"  /c *.c
47
	link /dll /def:mypkg.def /out:mypkg.dll *.obj Rdll.lib
47
	link /dll /def:mypkg.def /out:mypkg.dll *.obj Rdll.lib