Hi,
This can be tricky the first time. Three possibilities:
1) Try using DEPENDS.EXE to check if gC is visible in the DLL
2) The instructions I think are slightly wrong -- you don't need to find the S
dll when you define the project
3) I think you still need to open the DLL or put it in a library -- I'm not
sure that simply having it in the working directory works
Regards,
David Jessop
-----Original Message-----
From: Dimitris Rizopoulos [mailto:jimsailgr@yahoo.gr]
Sent: 17 July 2003 14:33
To: s-news@lists.biostat.wustl.edu
Subject: Problem in linking S.dll in S using VC++ 6.0
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
This material has been prepared by UBS AG or an affiliate thereof
("UBS"). This material is a sales and trading communication and should
not be viewed as research. Opinions expressed herein are subject to
change without notice and may differ or be contrary to the opinions or
recommendations of UBS Investment research or the opinions expressed
by other business areas or groups of UBS as a result of using
different assumptions and criteria. Full details of UBS Investment
Research, if any, are available on request. Any prices or quotations
contained herein are indicative only and do not constitute an offer to
buy or sell any securities at any given price. No representation or
warranty, either express or implied, is provided in relation to the
accuracy, completeness, reliability or appropriateness of the
information, methodology and any derived price contained within this
material. The securities and related financial instruments described
herein may not be eligible for sale in all jurisdictions or to certain
categories of investors. Options, derivative products and futures are
not suitable for all investors, and trading in these instruments is
considered risky. Past performance is not necessarily indicative of
future results. Foreign currency rates of exchange may adversely
affect the value, price or income of any security or related
instrument mentioned in this report. UBS, its directors, officers and
employees or clients may have or have had interests or long or short
positions in the securities or related financial instruments referred
to herein, and may at any time make purchases and/or sales in them as
principal or agent. UBS may provide investment banking and other
services to and/or serve as directors of the companies referred to in
this material. Neither UBS its directors, employees or agents accept
any liability for any loss or damage arising out of the use of all or
any part of these materials. This material is distributed in the
following jurisdictions by: United Kingdom: UBS Limited, a subsidiary
of UBS AG, to persons who are market counterparties or intermediate
customers (as detailed in the FSA Rules) and is only available to such
persons. The information contained herein does not apply to, and
should not be relied upon by, private customers. Switzerland: UBS AG
to institutional investors only. Italy: Giubergia UBS SIM SpA, an
associate of UBS SA, in Milan. US: UBS Securities LLC or UBS Financial
Services Inc., subsidiaries of UBS AG, or solely to US institutional
investors by UBS AG or a subsidiary or affiliate thereof that is not
registered as a US broker-dealer (a "non-US affiliate"). Transactions
resulting from materials distributed by a non-US affiliate must be
effected through UBS Securities LLC or UBS Financial Services Inc.
Canada: UBS Securities Canada Inc., a subsidiary of UBS AG and a
member of the principal Canadian stock exchanges & CIPF. Japan: UBS
Securities Japan Ltd or UBS AG, Tokyo Branch, to institutional
investors only. Hong Kong: UBS Securities Asia Limited or UBS AG, Hong
Kong Branch. Singapore: UBS Securities Singapore Pte. Ltd or UBS AG,
Singapore Branch. Australia: UBS Advisory and Capital Markets
Australia Ltd and UBS Securities Australia Ltd. For additional
information or trade execution please contact your local sales or
trading contact.
Copyright 2003 UBS. All rights reserved. This material is strictly
for specified recipients only and may not be reproduced, distributed
or forwarded in any manner without the permission of UBS.
|