Hi, I am trying to compile C++ with R and I am coming up against - what I believe - is a linker configuration issue.
For example, using has_develop() gives the following message... > has_devel() "C:/PROGRA~1/R/R-30~1.2/bin/i386/R" --vanilla CMD SHLIB foo.c gcc -m32 -I"C:/PROGRA~1/R/R-30~1.2/include" -DNDEBUG -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O3 -Wall -std=gnu99 -mtune=core2 -c foo.c -o foo.o gcc -m32 -shared -s -static-libgcc -o foo.dll tmp.def foo.o -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA~1/R/R-30~1.2/bin/i386 -lR collect2: ld returned 9 exit status Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/TEMP/Rtmpes5hJL/foo.dll': LoadLibrary failure: The specified module could not be found. I am running Windows 7 (32-bit), Rtools has been installed and is in my path (i.e. I can run gcc/g++). The object file (.o) gets created but then the linking goes awry. Another thing here is that I do not know where the directory RCompile is as it appears to be trying to link some 64-bit stuff (i.e. extralibs64). Any help/thoughts would be fantastic, Sam [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel