Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!uunet!mcsun!ukc!axion!planet!pegasus!prk From: prk@planet.bt.co.uk (KnightRider) Newsgroups: comp.os.msdos.programmer Subject: Re: What is __acrtused? Message-ID: Date: 16 Nov 90 08:53:58 GMT References: <1990Nov13.164250.19569@geac.com> <966@demott.COM> Sender: usenet@planet.bt.co.uk (Usenet News Manager) Organization: RT743, BT Research Labs, Martlesham Heath, Ipswich, UK. Lines: 36 kdq@demott.COM (Kevin D. Quitt) writes: __acrtused My understanding is that this is used to indicate to the linker whether or not to pull in the C run-time library. The documentation for this is to be found in descriptions of how to build dynamic link-libraries for OS/2. However, I believe if you put this line in your program: int _arcrtused =0; Then the C run-time is EXCLUDED by the linker, int _arcrtused =1; INCLUDES the linker. It may be plausible, though rash, to assume that a similar variable declaration in an assembly program will cause the inclusion/exclusion of the C run-time in an assembly program. Of course, if you have a program partly build in C, then you may only exclude the run-time library iff: 1 You provide your own entry point (ie no C main function) 2 You do not use the C run-time library (though yu can use macros, of course). Peter Knight BT Research #include