From: Elmar R. <elm...@gm...> - 2007-08-15 09:34:51
|
-- Flora Lau wrote: > Hello all, > My experience in these things is not so good so please excuse any > naivetm. What I would like to know is will wgcc allow me to build an > open source c++ project (containing Makefile, configure, configure.in > files etc) intended for gcc and then link , for instance a static > library thus built, to a MSVC++ (v8) project within VS? interix-wgcc is exactly for that purpose. wgcc implements gcc interface, but beneath it uses cl.exe to compile and link.exe for linking. Though with wgcc you get native win32 libs and executables. For building an opensource package you only to overwrite CC, CXX and LD to use wgcc instead of gcc. > Presently I > have attempted to link gcc built static libraries to a MSVC++ project > but this has failed due to compiler incompatibilities (different name > mangling etc between compilers). To get around this problem I have > seen suggested that a C code interface between my MS project and any > gcc built libraries be created to handle any calls to the C++ code > within these libraries from MS project. With wgcc such stunts aren't necessary, because if you've build your package with wgcc you've got native win32 libs. Maybe you have to port some things in you opensource package though wgcc can compile the source. > Before I commence on such a > task unnecessarily, is the assumption in my question correct. My > perusal from the various internet chatter (wgcc, cccl, wcc, and > general) has created much confusion for me and I have not seen an > answer stated explicitly, for or against, to a question posed as I > have done. > > Any help is greatly appreciated, > > Flora L Elmar |