[R] Error compiling ROracle on Windows 2000

mark.threefoot@amd.com mark.threefoot at amd.com
Fri May 7 23:12:12 CEST 2004


Hello,

I am trying to compile ROracle _0.5-4 under R 1.9.0 without much success.  I am running Windows 2000 SP4, Visual C++ 6.0 SP6, and Oracle client 9.2.0.1.0.  I was able to run the pre-compiled version of ROracle_0.5-2 under R 1.7.1, but does not work on R 1.8.1 or R 1.9.0.  Here is the output from nmake:

C:\Program Files\R\rw1090\library\ROracle\src>nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        cl /I"C:\\Program Files\\R\\rw1090"\\src\\include /MT /Ox /D "MSVC" /D "
WIN32" /c RS-DBI.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

RS-DBI.c
        cl /I"C:\\Program Files\\R\\rw1090"\\src\\include /MT /Ox /D "MSVC" /D "
WIN32" /c RS-Oracle.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

RS-Oracle.c
NMAKE : fatal error U1073: don't know how to make '\src\\gnuwin32\\Rdll.lib'
Stop.

Here is a copy of my Makefile:

R_HOME = "C:\\Program Files\\R\\rw1090"
ORACLE_HOME = C:\\oracle\\oracle92
SRC  = RS-DBI.h RS-DBI.c RS-Oracle.h RS-Oracle.pc S4R.h
RLIB = $(R_HOME)\\src\\gnuwin32\\Rdll.lib
OBJ  = RS-DBI.obj RS-Oracle.obj 

##
## The Oracle ProC/C++ precompiler and options we need (these have worked
## on Linux, Solaris, and Windows 2000).
##

PROC=proc              ## this is the ProC/C++ executable
CODE=ANSI_C            ## the following are ProC/C++ options
MODE=ORACLE
PARSE=NONE             ## don't do any C parse
LINES=false            ## use true for debugging

ROracle.dll:  $(OBJ) $(RLIB)
	(cd $(R_HOME)\\src\\gnuwin32 && lib /def:R.exp /out:Rdll.lib)
	link /dll /def:ROracle.def /out:ROracle.dll $(ORACLE_HOME)\\precomp\\lib\\orasql9.lib *.obj $(R_HOME)\\src\\gnuwin32\\Rdll.lib 
	
RS-DBI.obj: RS-DBI.h RS-DBI.c S4R.h
	cl /I$(R_HOME)\\src\\include /MT /Ox /D "MSVC" /D "WIN32" /c RS-DBI.c

RS-Oracle.obj: RS-Oracle.h RS-Oracle.c S4R.h
	cl /I$(R_HOME)\\src\\include /MT /Ox /D "MSVC" /D "WIN32" /c RS-Oracle.c

RS-Oracle.c: RS-Oracle.h RS-Oracle.pc 
	$(PROC) CODE=$(CODE) MODE=$(MODE) INCLUDE=$(R_HOME)/include \
                PARSE=$(PARSE) LINES=$(LINES) RS-Oracle.pc
force-Rdll.lib:
	(cd $(R_HOME)\\src\\gnuwin32 && lib /def:R.exp /out:Rdll.lib)
clean:
	rm -f $(OBJ) *.a *.d *.rc 
clobber:
	rm -f $(RLIB) $(OBJ) RS-Oracle.c *.a *.d *.rc *.dll 

Thanks for your help,
Mark




More information about the R-help mailing list