Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <1B3D5E532D18D311861A00600865478C25E6B3@exchange1.nt.maidstone.gov.uk> From: Peter Mount To: "Cygwin List (E-mail)" Subject: libnetapi32 Date: Mon, 11 Oct 1999 13:11:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain I'm trying to use the Win32 function NetRemoteTOD, but whenever I try to link, I get the following: bash-2.02$ make test.exe gcc -o test.exe mbclogon.o bitmaps.o command.o profgen.o registry.o script.o text.o time.o -lnetapi32 -mwindows -luser32 -lgdi32 time.o(.text+0x4c):time.c: undefined reference to `NetRemoteTOD' collect2: ld returned 1 exit status make: *** [test.exe] Error 1 Now I know that this function is in the netapi32 library, but the linker seems to have problems. Any ideas? Also, this function doesn't seem to be defined in any of the header files (I had to create my own). Peter -- Peter Mount Enterprise Support Maidstone Borough Council Any views stated are my own, and not those of Maidstone Borough Council. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com