Bug 16565 - R.dll mistakenly export symbols like printf()
Summary: R.dll mistakenly export symbols like printf()
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: System-specific (show other bugs)
Version: R 3.2.2
Hardware: ix86 (32-bit) Windows 32-bit
: P5 major
Assignee: R-core
URL: http://stackoverflow.com/questions/33...
Depends on:
Blocks:
 
Reported: 2015-10-15 06:29 UTC by Ivan Pizhenko
Modified: 2015-10-15 06:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Pizhenko 2015-10-15 06:29:18 UTC
When attempting to generate import library for the Visual C++ 2013 (and other versions as well) from R.dll using quite standard method described here http://stackoverflow.com/a/9946390/1540501, I've getting that R.dll exports some C libary functions:
fprintf 
printf
sprintf
vasprintf 
vfprintf 
vprintf 
vsprintf 
Which then causes starange crashes in the target application, which attempt to emned R.dll into it - example case described here: http://stackoverflow.com/questions/33136486/program-in-c-compiled-with-embedded-r-dll-crashes-in-a-strange-way
Although workround exists, it will be nice if you fix that in the next builds of R.
Comment 1 Ivan Pizhenko 2015-10-15 06:29:59 UTC
The same applied for the both Windows targets: x86 and x64.