Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Linker Warning When Compiling a Measurement Studio Visual C++ Project

Primary Software: Measurement Studio>>Visual C++ Support
Primary Software Version: 6.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am compiling a Measurement Studio Visual C++ project and I constantly get linker warning LNK4089. Why am I getting the linker warning LNK4089?

Solution:
The Common component links to specific DLLs. The linker discards symbols from NiCommon.lib that are not referenced in the .exe. When the linker discards all symbols from the Common component that require the specific DLLs, the linker discards the DLL import library because it is no longer necessary. The LNK4089 linker warning conveys that you do not have to link to the DLL import library because it is not used by the .exe.

For example, build a project that includes only the Common and Utility components. Add a reference to CNiTimer that does not reference any symbols in the DLLs or any symbols in the Common component that reference the DLLs. The linker generates a warning to let you know that it is throwing out all references to the DLL.

Related Links:

Attachments:





Report Date: 01/29/2004
Last Updated: 05/09/2005
Document ID: 35SB1700

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit