Web lists-archives.org

Re: [Mingw-users] Linking with a Managed MSVC dll




On Thu, Mar 04, 2010 at 06:07:59PM -0500, Nick Deubert wrote:
> Hello,
> I've read this page http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs and
> got a mingw main c++ file to link and run fine with a unmanaged c++
> dll. However, now I need to do it with a managed C++ dll (see the
> commands I'm using below) Everything compiles and links fine but when
> I go to run it I get this every time (after having to copy msvcr90.dll
> and msvcm90.dll to my working directory):

Hi Nick,

I've got to admit, I haven't the slightly clue why it doesn't work
with a managed dll, but I'm assumming managed dll's require the .NET
framework, and the calling ABI is potentially different and
incompatible. (This is just a complete guess)

There are probably other, nicer alternatives, but I'd recommend
this: try linking to the normal DLL, and then have that DLL call
functions in your managed DLL. Maybe that'd work.

Bob Rossi

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users