INF:_acrtused Must Be Defined When Not Including Start-Up Code

ID Number: Q43646

5.00 5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

The object modules created by the Microsoft C Compiler versions 5.1

and earlier contain a reference to the variable _acrtused. This

variable causes the linker to bring in the C start-up code. To not

link the C start-up code, it is necessary to define _acrtused as

follows:

int _acrtused = 0;

Object modules created with C Compiler versions 6.0, 6.0a, or 6.0ax

only have a reference to the _acrtused variable if the source file

contains a function called main(). In addition, C/C++ 7.0 will generate

the reference for files containing a WinMain() or LibMain() function.

Additional reference words: 5.10 6.00 6.00a 6.00ax acrtused __acrtused

ROM 7.00