程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> .NET實例教程 >> using linker option to fix error LNK2005

using linker option to fix error LNK2005

編輯:.NET實例教程

Issue : Link error
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _sprintf already defined in libcmt.lib(sprintf.obj)

Fixed method:

Use /FORCE:MULTIPLE to create an output file whether or not LINK finds more than one definition for a symbol.

To set this linker option in the Visual Studio development environment

  1. Open the project''s Property Pages dialog box. For details, see Setting Visual C++ Project PropertIEs.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option into the Additional Options box.

Reference : http://msdn2.microsoft.com/en-us/library/70abkas3.ASPx



  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved