Hi folks,
 
My system is Windows98 + R1.9.0. 
The path for my system is c:\perl\bin; c:\mingw\bin; c:\rtools;
c:\windows; c:\windows\command; c:\rw1090\bin.
 
I created three files followed the examples in �Writing R extensions� in
the directory c:\temp:
// X.hh
class X {
public: X (); ~X ();
};
class Y {
public: Y (); ~Y ();
};
 
// X.cc
#include <iostream>
#include "X.hh"
static Y y;
X::X() { std::cout << "constructor X" << std::endl; }
X::~X() { std::cout << "destructor X" << std::endl; }
Y::Y() { std::cout << "constructor Y" << std::endl; }
Y::~Y() { std::cout << "destructor Y" << std::endl; }
 
 
// X_main.cc:
#include "X.hh"
extern "C" {
void X_main () {
X x;
}
} // extern "C"
 
Then I followed the instructions in �R for windows FAQ� using the
command:
C:\temp>RCMD SHLIB X.CC X_MAIN.CC
 
However, I got the following message: 
In file included from x_main.cc:2:
x.hh:7:3: Warning: no newline at end of the file
making convolve.d from convolve.cc
g++   -IC: /R/RW1090/src/include �Wall �o2  -c  x.cc  -o  x.o
In file included from x.cc:3:
x.hh:7:3: Warning: no newline at end of the file
make: *** No rule to make target �x_main.o�, needed by �X.a�. Stop
 
I guess I failed to get the dll file finally. 
 
Any suggestion would be greatly appreciated.
 
Rui
 
Phone: (403)220-4501
Email: [EMAIL PROTECTED]
Department of Mathematics and Statistics
University of Calgary
 

        [[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to