I'm not sure you understand the problem. Are you saying that a file compiled with mingw can catch an exception thrown by a file compiled with VC++ when the two are linked into a single program? That a program compiled with mingw can be linked against the VC++ runtime and *not* the mingw/gcc runtime? Linking against system DLLs is very different from what I'm talking about. Adam Treat wrote:>On Friday 18 February 2005 11:19 am, Chris Lattner wrote: > > >>I think that G++ has some support for linking to native windows libraries, >>using by MingW? We should eventually be able to do as well as it does. >>Note that for non C/C++ compilers, this is not an issue. >> >> > >It does indeed. You can even use mingw/g++ to cross-compile Windows exe under >Linux. > >_______________________________________________ >LLVM Developers mailing list >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > > > >
I'm afraid that still does not completely answer the question. I'll accept that it will work for C programs, given what you quote. It says nothing about C++ however. That's a different animal entirely. g++ mangles names in a completely different fashion than VC++. Does mingw use VC++ style mangling? g++ processes exceptions in a completely different fashion than VC++. I think you get the picture :) Adam Treat wrote:>On Friday 18 February 2005 11:40 am, Jeff Cohen wrote: > > >>I'm not sure you understand the problem. >> >> > >I wouldn't be surprised :) > > > >>Are you saying that a file >>compiled with mingw can catch an exception thrown by a file compiled >>with VC++ when the two are linked into a single program? That a program >>compiled with mingw can be linked against the VC++ runtime and *not* the >>mingw/gcc runtime? >> >> > >AFAIK, mingw _does_ link against the MS runtime. > >mingw32 allows "one to produce native Windows programs that do not rely on any >3rd-party C runtime DLLs." ^1 > >mingw32 "uses Microsoft's runtime (either CRTDLL.DLL or MSVCRT.DLL) for all >services, and you get no more and no less than what Microsoft provides." ^2 > >1) http://www.mingw.org/ >2) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/x86-win32-ports.html > >_______________________________________________ >LLVM Developers mailing list >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > > > >
On Friday 18 February 2005 11:40 am, Jeff Cohen wrote:> I'm not sure you understand the problem.I wouldn't be surprised :)> Are you saying that a file > compiled with mingw can catch an exception thrown by a file compiled > with VC++ when the two are linked into a single program? That a program > compiled with mingw can be linked against the VC++ runtime and *not* the > mingw/gcc runtime?AFAIK, mingw _does_ link against the MS runtime. mingw32 allows "one to produce native Windows programs that do not rely on any 3rd-party C runtime DLLs." ^1 mingw32 "uses Microsoft's runtime (either CRTDLL.DLL or MSVCRT.DLL) for all services, and you get no more and no less than what Microsoft provides." ^2 1) http://www.mingw.org/ 2) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/x86-win32-ports.html