Developer Guide and Reference

ID 767253
Date 10/31/2024
Public
Document Table of Contents

nodefaultlibs

Prevents the compiler from using standard libraries when linking.

Syntax

Linux:

-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, this option is provided for GNU compatibility.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

Visual Studio: None

Eclipse: Libraries > Use no system libraries

Alternate Options

None

See Also