# Loading shared libraries built by Visual Studio C++ 8

**URL:** <https://www.ruby-forum.com/t/loading-shared-libraries-built-by-visual-studio-c-8/51277>\
**Category:** Ruby\
**Created:** [December 29, 2005, 2:25am UTC](https://www.ruby-forum.com/t/loading-shared-libraries-built-by-visual-studio-c-8/51277 "2005-12-29T02:25:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glenn\_MSLewis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/57b2e6/32.png) [@Glenn\_MSLewis](https://www.ruby-forum.com/u/Glenn_MSLewis)\
**Post date:** [December 29, 2005, 2:25am UTC](https://www.ruby-forum.com/t/loading-shared-libraries-built-by-visual-studio-c-8/51277/1 "2005-12-29T02:25:40Z")

</div>

Hi!

```
I have Ruby 1.8.2 (Windows One-click installer - thanks, Curt!)

```

and used to use Visual C++ 6.0 for a long time to create shared libs  
(using SWIG and extconf.rb) that I could load in with “require”… but  
now that I’ve upgraded to Visual Studio C++ 8.0, I get the following  
error after recompiling everything:

Microsoft Visual C++ Runtime Library  
Runtime Error!  
Program: c:\ruby\bin\ruby.exe  
R6034  
An application has made an attempt to load the C runtime library  
incorrectly.  
Please contact the application’s support team for more information.

```
Any ideas on what I'm doing wrong or how to fix this?

Thanks!

```

– Glenn Lewis

---

<div class="post-metadata">

**Author:** ![Glenn\_MSLewis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/57b2e6/32.png) [@Glenn\_MSLewis](https://www.ruby-forum.com/u/Glenn_MSLewis)\
**Post date:** [December 29, 2005, 5:17am UTC](https://www.ruby-forum.com/t/loading-shared-libraries-built-by-visual-studio-c-8/51277/2 "2005-12-29T05:17:18Z")

</div>

Hi,

At Thu, 29 Dec 2005 10:22:55 +0900,  
Glenn M. Lewis wrote in [ruby-talk:172904]:

> I have Ruby 1.8.2 (Windows One-click installer - thanks, Curt!)  
> and used to use Visual C++ 6.0 for a long time to create shared libs  
> (using SWIG and extconf.rb) that I could load in with “require”… but  
> now that I’ve upgraded to Visual Studio C++ 8.0, I get the following  
> error after recompiling everything:

VC6 and VC8 use the different versions of runtime DLL. You  
can’t mix them because of the restriction of Windows DLL  
loader mechanism.
