[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fastest C++ Compiler?




On Fri, 15 May 1998, Darren Cook wrote:

> Is it possible to link gcc object files using visual C++? I'm thinking I'll
> do the development and debugging in visual C++, and then once I've got an
> algorithm finished I'll recompile it with gcc.

With regards to portability, I'd suggest to use a shared library
(.DLL under Win95/NT) for the code compiled with gcc.
I have seen a gcc port which is also producing MS .OBJ files and
which would be suitable for static linkage to any code produced
by MS Visual C++ (in fact I saw this port as part of a GNAT port
done by InterMetrics which seems not to be supported any more;
this port also used the MS library for underlying code).

If using a shared library model, you could easily switch back and
forth to other systems supporting shared libraries without having
to care about linkage issues: you just have to privide an inter-
face (which is normally generated by a part of the build process
and which is independant with regards to the compiler output).

Torsten