Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

fatal error - #using failed on dhcpsapi.lib

I recently installed the Windows Server 2003 SDK, and am trying to make use of the DhcpEnumSubnetClients function. This function's headers are declared in dhcpsapi.h (part of the SDK) and the library in question is dhcpsapi.lib.

When I insert the statement
#using <dhcpsapi.lib>
I get
fatal error C1192: #using failed on 'c:\program files\microsoft sdk\lib\dhcpsapi.lib'

This is my first time using the SDK, and I'm sure I'm making a simple mistake, but I'm unable to figure out what it is.
Any help?

Geoff
Monday, January 10, 2005

I've never seen #using applied to a .lib before.

Try #include <dhcpsapi.h> and then including the .lib in the link step.

Rob Walker
Tuesday, January 11, 2005

*  Recent Topics

*  Fog Creek Home