# nostdlib

Prevents the compiler from using standard libraries and startup files when linking.

## Syntax

Linux: | -nostdlib

macOS: | -nostdlib

Windows: | None

## Arguments

None

## Default

OFF | The compiler uses standard startup files and standard libraries when linking.

## Description

This option prevents the compiler from using standard libraries and startup files when linking. On Linux* systems, it is provided for GNU compatibility.

This option is not related to option -stdlib.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Linking or Linker Options

## See Also

nodefaultlibs compiler option
nostartfiles compiler option