Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

LINK : warning LNK4089: all references to

When I compile a visa driver with Visual C++ I got this warning.

How can I get ride of that?
0 Kudos
Message 1 of 2
(2,903 Views)
This warning is usually because either a.) you're linking to a library but the linker is detecting that you're not using any functions from it, or b.) an unused function in your code is referencing a symbol that the linker discarded.

You can try one of the following options to get rid of the warning:


  1. Add a /IGNORE:4089 switch to the linker command-line in the project settings to ignore the warning.

  2. Add a #pragma comment(linker, "/IGNORE:4089") to your stdafx.h to ignore the warning.

  3. Remove references to the library and don't link to it if you're not using any functions from it.

  4. Use the /VERBOSE switch to see the functions that the linker is discarding and debug the source of the problem.



Hope th
is helps.

- Elton
Message 2 of 2
(2,903 Views)