[m-rev.] diff: implement io__set_environment_variable for .NET

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Nov 6 15:16:21 AEDT 2002


On 04-Nov-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> On Sat, Nov 02, 2002 at 05:07:15PM +1100, Fergus Henderson wrote:
> > library/Mmakefile:
> > 	A tweak needed to get things to link properly after the above
> > 	change to io.m.
>
> I am not so sure about this change, my nightly install of .NET now falls
> over with this error message
...
> LINK : warning LNK4044: unrecognized option '/link'; ignored
> LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
> referenced in function _mainCRTStartup
> io__cpp_code.dll : fatal error LNK1120: 1 unresolved externals

Sorry about that -- I was in a rush when I committed that, and I forgot
to commit one of the other files that I had changed.

I'll reapply the change with this fix, and I guess you can see whether
it passes your nightly tests this time.

scripts/Mmake.rules:
	When invoking $(MS_CL) to create DLLs, use the option "/LD" which
	is documented in the help message, rather than the (undocumented?)
	options "-link -noentry mscoree.lib -dll".

cvs server: Diffing .
Index: Mmake.rules
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.rules,v
retrieving revision 1.134
diff -u -d -u -r1.134 Mmake.rules
--- Mmake.rules	15 Sep 2002 10:01:51 -0000	1.134
+++ Mmake.rules	6 Nov 2002 04:06:43 -0000
@@ -271,7 +271,7 @@
 	$(MS_CL) -CLR$(MS_CL_NOASM) $(ALL_MS_CLFLAGS) \
 		-I`$(CYGPATH) $(MERC_C_INCL_DIR)` \
 		-AI`$(CYGPATH) $(MERC_DLL_DIR)` $< \
-		-link -noentry mscoree.lib -dll $(MS_CL_LIBS) -out:$@
+		/LD $(MS_CL_LIBS) -out:$@
 	rm -f $*.obj
 
 $(os_subdir)%.dll : %.cs
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list