# 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.

### Note

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation. Offloading can only be enabled when using ifx.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Linking or Linker Options

## See Also

nodefaultlibs compiler option
nostartfiles compiler option