# nodefaultlibs

Prevents the compiler from using standard libraries when linking.

## Syntax

Linux: | -nodefaultlibs

macOS: | -nodefaultlibs

Windows: | None

## Arguments

None

## Default

OFF | The standard libraries are linked.

## Description

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

## IDE Equivalent

Visual Studio: None

Eclipse: Libraries > Use no system libraries

Xcode: None

## Alternate Options

None

Parent topic: Linking or Linker Options

## See Also

nostdlib compiler option