LNK1181: cannot open input file ‘rpcndr.lib’

Symptom: You had recently  installed the brand-new Windows SDK (for Vista and .NET Framework 3.0) and now your proxy stubs fail to link.

Cause: The Windows SDK no longer ships with rpcndr.lib (says Shawn Henry)

Resolution: Remove rpcndr.lib from the list of Additional Dependencies under Linker, Input options in the project properties dialog in Visual Studio. Be sure to do this for all configurations and that rpcrt4.lib is actually in this list.

Advertisements
This entry was posted in Coding Horror. Bookmark the permalink.

One Response to LNK1181: cannot open input file ‘rpcndr.lib’

  1. jd says:

    You also need to remove comment out the line

    //#pragma comment(lib, “rpcndr.lib”)

    in the dlldatax.c file

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s