[S] printf in C program called from Splus4

Broman, Karl (BromanK@cmg.mfldclin.edu)
Fri, 3 Apr 1998 10:17:18 -0600


I just recently figured out how to call C programs from Splus ver 4.
I'm using Visual C/C++, and so I create a dll and then load it into
Splus using dll.load.

I'd like to be able to use printf statements in my C programs, mostly
for debugging purposes. I tried including S.h and newredef.h, but when
the dll is created by the linker, I get the following error.

Linking...
Creating library Release/karl.lib and object Release/karl.exp
karl.obj : error LNK2001: unresolved external symbol
_S_newio_printf
Release/karl.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
karl.dll - 2 error(s), 0 warning(s)

Can anyone explain to me what I'm doing wrong, and how to do it right?

Thanks!
karl
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news