NODEFAULTLIB

/NODEFAULTLIB   (Ignore Libraries)

HomeOverviewHow Do ILinker Options

Syntax

/NODEFAULTLIB[:library]

This option tells the linker to remove one or more default libraries from the list of libraries it searches when resolving external references.

Command Line
Project Settings
Description

/NODEFAULTLIB:library
Ignore Libraries
This option removes the specified library or libraries from the list of libraries it searches when resolving external references.

/NODEFAULTLIB
Ignore All Default Libraries
This option removes all default libraries from the list of libraries it searches when resolving external references.

To find this option in the development environment, click Settings on the Project menu. Then click the Link tab, and click Input in the Category box.

The linker resolves references to external definitions by searching first in libraries specified in the Object/Library Modules text box in the Project Settings dialog box (or on the command line), then in default libraries specified with the /DEFAULTLIB option, and then in default libraries named in .OBJ files.

To specify multiple libraries, type a comma (,) between the library names.

The Ignore Libraries (/NODEFAULTLIB:library) option overrides /DEFAULTLIB:library when the same library name is specified in both.

 

 

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

C Run-Time Library (without iostream)CharacteristicsOptionDefined
LIBC.LIBSingle threaded, static link/ML 
LIBCMT.LIBMultithreaded, static link/MT_MT
MSVCRT.LIBMultithreaded, dynamic link (import library for MSVCRT.DLL)/MD_MT, _DLL

Standard C++ LibraryCharacteristicsOptionDefined
LIBCP.LIBSingle threaded, static link/ML 
LIBCPMT.LIBMultithreaded, static link/MT_MT
MSVCPRT.LIBMultithreaded, dynamic link (import library for MSVCRT.DLL)/MD_MT, _DLL

 

编译的时候常会出现c或C++符号冲突的情况,可以在vc6->Project Setting->link->input里面把对应不需要的lib填充到Ignore Libraries列表里面

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值