atlthunk.lib for VS2015\WDK 10

I am converting a Notify Object for our NDIS IM driver and am getting:

LINK : fatal error LNK1104: cannot open file ‘atlthunk.lib’

The older project pointed to:

C:\WINDDK\7600.16385.0\lib\ATL\amd64\atlthunk.lib

However with the new WDK 10 this library is not there and I have not found a way around this. Can someone point me in the right direction?

Larry C

xxxxx@honeywell.com wrote:

I am converting a Notify Object for our NDIS IM driver and am getting:

LINK : fatal error LNK1104: cannot open file ‘atlthunk.lib’

The older project pointed to:

C:\WINDDK\7600.16385.0\lib\ATL\amd64\atlthunk.lib

However with the new WDK 10 this library is not there and I have not found a way around this. Can someone point me in the right direction?

I find it extremely unlikely that your driver is referring to anything
in that library. That’s only used for debugging ATL COM interface
handling, and an NDIS IM driver is not going to be using ATL COM
interfaces. In fact, I don’t see how you could be using ATL at all.

Option number 1 is simply to remove this from the library list and see
if it compiles.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

This is not the driver itself but the Notify Object that runs in usermode that does all the unbinding/rebinding during install and provides the Property Pages for manual configuration so it uses a lot of ATL.
I have had to download the ATL extensions, wtl91_5321_final to get this far.

Larry C

I get this error with or without this being in the list.

Larry C

xxxxx@honeywell.com wrote:

This is not the driver itself but the Notify Object that runs in usermode that does all the unbinding/rebinding during install and provides the Property Pages for manual configuration so it uses a lot of ATL.

The entry points formerly in atlthunk.lib are now provided in the normal
ATL library, atls.lib. If someone is still referring to atlthunk.lib by
name, you may have to add it to your /NODEFAULTLIB list.

Are you still referring to include files in the old WDK?

I have had to download the ATL extensions, wtl91_5321_final to get this far.

I’m a huge fan of WTL. It is, in my opinion, a better GUI framework
than MFC.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks Tim,

The entry points formerly in atlthunk.lib are now provided in the normal
ATL library, atls.lib.

How did you figure this out… I would like to know so I don’t have to keep bothering the List for these minor problems.

Are you still referring to include files in the old WDK?
No, updating everything to Win10, that’s why I ran into this problem. Unfortunately I am not the original developer for this Notify Object.

Larry C

I guess I should have checked first:

Where do I find atls.lib?

Not in WDK 10!

Larry C

xxxxx@honeywell.com wrote:

Thanks Tim,

> The entry points formerly in atlthunk.lib are now provided in the normal ATL library, atls.lib.
How did you figure this out… I would like to know so I don’t have to keep bothering the List for these minor problems.

Raw brute force:
link /dump /linkermember atlthunk.lib
and
link /dump /linkermember atls.lib


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

xxxxx@honeywell.com wrote:

I guess I should have checked first:

Where do I find atls.lib?

Not in WDK 10!

ATL ships with the compiler, not the WDK. It’s part of Visual Studio.
In the Visual Studio tree in VC\atlmfc\lib\amd64.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks Tim, once I got it pointed in to the correct spot and get rid of the explicit callout for atlthunk.lib I was able to get everything working.

I have forgotten the /dump switch on Link.

Larry C