[m-dev.] Link error for mercury_mcpp.cpp

Peter Ross pro at missioncriticalit.com
Wed Oct 15 19:41:52 AEST 2003


On Tue, Oct 07, 2003 at 11:57:08AM +0200, Peter Ross wrote:
> Even using
>     cl /clr:noAssembly /LD mercury_mcpp.cpp
> we get the problem.
> 
> In fact we get the problem, even for the following very simple file
> compiled with the same options as above.
> 
> #using <mscorlib.dll>
> namespace mercury {
> namespace runtime {
> __gc public class SystemException : public System::Object
> {
> public:
> };
> }
> }
> 
> This is what I mean about the MC++ support being brittle.  If you can
> work out what the problem I would be very grateful.

See
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=%23UeFPvnkDHA.3312%40tk2msftngp13.phx.gbl
for an answer to the problem, which is essentially to add nochkclr.obj
    cl /clr:noAssembly /LD mercury_mcpp.cpp nochkclr.obj
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list