s-news
[Top] [All Lists]

Problem in linking S.dll in S using VC++ 6.0

To: s-news@lists.biostat.wustl.edu
Subject: Problem in linking S.dll in S using VC++ 6.0
From: Dimitris Rizopoulos <jimsailgr@yahoo.gr>
Date: Thu, 17 Jul 2003 14:32:50 +0100 (BST)
Dear S+ users,

I am trying to call a C++ routine (written in VC++ 6.0) from S. I am
following the steps delineated in the Programmers guide and I manage to
create the "S.dll" file. Then I copy this file and paste it in the working
directory (C:\Program Files\Insightful\splus61\users\user). However, when
I am trying to use the compiled code using the ".C" function I obtain the
following message:

Problem in .C("gC",: "gC" is not a symbol in the load table, while calling
subroutine gC

I am apparently doing something wrong because when I use the same routine
in a "Win32 DLL" project, write a ".def" file to create the library and
export the function and use "dyn.open" then ".C" function works properly.

I am using S-PLUS 6.1 Professional Release 1 in Windows 98.

Thanks in advance for you suggestions,
Dimitris


=====
Dimitris K. Rizopoulos 
Graduate Student
International Study Program in Statistics
Katholieke Universiteit Leuven
Belgium
http://www.kuleuven.ac.be/ucs/isps/

____________________________________________________________
Do You Yahoo!?
Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr

<Prev in Thread] Current Thread [Next in Thread>