Newsgroups: comp.os.msdos.programmer
Path: utzoo!censor!geac!huehn
From: huehn@geac.com (Robert Huehn)
Subject: Re: What is __acrtused?
Message-ID: <1990Nov13.164250.19569@geac.com>
Organization: Geac Computer Corporation
References: <1990Nov12.154215.21018@warwick.ac.uk>
Date: Tue, 13 Nov 90 16:42:50 GMT

In article <1990Nov12.154215.21018@warwick.ac.uk> csran@warwick.ac.uk 
 (Mr S J Russell) writes:
>called MSC 4.0. I have a small chunk of assembly in a file that handles
>startup and initialization. I assemble this and everything is great.
>I would like to link to this a .obj file containing a few functions written in
>C. The problem is this. I don't want to include any library functions so I use
>/NOD at link time. However the linker generates the following error
>
>Unresolved externals:
>
>fred.obj(fred.c)
>        __acrtused
>
>Does anybody know what __acrtused is or does. Is it used. I cannot find
>reference to it in an ordinary C programme that has been compiled and linked.
>Codeview seems to know about it because it returns its value/address
>without any problems. The startup code doesn't seem to use it and I
>certainly don't. Where does it come from. By the way I've tried compiling with
>the /Zl flag.
>>                Stu (sjr@uk.ac.warwick.cs)

I've ran into this too, with MSC 5.1.  It's a little annoying.  If you take
a look at the assembly file MSC generates, the first line in the externals
list is:

EXTRN  __acrtused :ABS

It isn't used in the rest of the listing either.  So it seems that you could
safely give the linker a bogus reference in your assembly code.  It works
for me.
-- 
Rob Huehn (huehn@geac.com) 2B Computer Engineering, University of Waterloo
