From: Luke D. <cod...@ho...> - 2002-06-18 03:41:03
|
The first question to ask is always: is this C or C++ code? In general, C++ code is not compatible between compilers but C mostly is. If the VC++ object is in C++, you might try to write a C wrapper for it using VC++, then access it from Mingw. When you say that you were able to link a DLL, please try to explain what you did in more detail. I don't know whether you built the DLL using Mingw or VC++. Luke Dunstan ----- Original Message ----- From: "Michnowicz, Simon G" <Sim...@te...> To: <min...@li...> Sent: Tuesday, June 18, 2002 11:06 AM Subject: [Mingw-users] Threading: Mingw vc VC++ > I am trying to combine code compiled with VC++ and Mingw > (the reason is that all our code was developed under cygwin > and we need to link it with a licence manager whose code is > compiled under VC++) > > The trouble is that the VC++ code is multi-threaded; > can mingw reliably link and run multi-threaded code? > > i.e. gcc fred.o foo.obj > where fred.o was compiled under mingw and foo.obj was compiled under > VC++? > > We were unable to link an object code, but could link a dll, but the > end product did not seem to work at all..? > > regards > > Simon Michnowicz > New Wave - Innovation, Chief Technology Unit > Tel: 03 9253 6769 > Fax: 03 9253 6352 > > Partnering to Deliver Telstra's Competitive Edge. |