Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: nickolai DOT bogdatov AT verizon DOT com Subject: 1.3.12-2 how to link with MS Platform SDK To: cygwin AT cygwin DOT com Message-ID: Date: Thu, 10 Oct 2002 12:03:51 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Hello, My application controls MS DHCP Server and because of that needs to use some calls from MS Platform SDK. For example I have to call "DhcpCApiInitialize()" function. I do #include // dhcp client options api Compilation goes no problem. But.... when I'm trying to link it gives me a error that cannot find function "DhcpCApiInitialize". I have "DhcpCSvc.Lib" (import) library from Platform SDK which contains this function. I read most articles about this on Inet. I tried to generate ".def" file for DHCPCSVC.DLL but this DLL is "stripped". I was even able to generate "def" file from DhcpCSvc.Lib, create ".a" library and link it with my project. But at runtime I have error "The procedure entry point DhcpCApiInitialize AT 4" could not be located in the dynamic link library DHCPCSVC.DLL" My question is: How do I *properly* link MS Platform SDK ".lib" files with my project ? Is in possible at ALL ? Regards, Nickolai Bogdatov Verizon Data Services, Tampa, FL (813) 978-7820 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/