delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Sun, 19 Jul 2009 15:12:18 -0400 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Compiling with netapilib |
Message-ID: | <20090719191218.GA14622@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <3A64AD910BEC5B438CE38CA499168FFE03F0ABA7 AT US0EXB07 DOT us DOT sonicwall DOT com> <4A636C93 DOT 2090809 AT users DOT sourceforge DOT net> |
MIME-Version: | 1.0 |
In-Reply-To: | <4A636C93.2090809@users.sourceforge.net> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Sun, Jul 19, 2009 at 01:57:23PM -0500, Yaakov (Cygwin/X) wrote: >On 19/07/2009 13:13, Ian Puleston wrote: >> I'm trying to use gcc 3.4.4 to compile the Microsoft C sample at >> http://msdn.microsoft.com/en-us/library/aa370663(VS.85).aspx to build a >> small test program that makes the "NetWkstaGetInfo" Windows NetAPI >> request. The Cygwin gcc library includes a libnetapi32.a library that >> seems to include that function (see below) but linking with it gives an >> "undefined reference to `_NetWkstaGetInfo AT 12'" error. Any idea what I am >> missing - is there some other library that I need to link in too? >> >> [Temp]: gcc -l netapi32 -o winTst2.exe winTst2.c > >http://cygwin.com/faq/faq-nochunks.html#faq.programming.win32-api Or, more precisely: library references go last, not first. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |