X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4BAFAF3U6cKEdK/2dsb2JhbABEhQWVD414gSKBD34HgXIBAQEEEhERVQIBCA0NAhgOAgICHRMVAgENAQEEGxqhU4lQkW6BMIhbM2MEiC2EL41njE8 From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin AT cygwin DOT com" Date: Mon, 5 Dec 2011 12:59:39 -0500 Subject: RE: injob version 1.3 Message-ID: <0105D5C1E0353146B1B222348B0411A20A43AF2C44@NIHMLBX02.nih.gov> References: <4EDC224D DOT 3020907 AT gmail DOT com> <0105D5C1E0353146B1B222348B0411A20A43AF2C0C AT NIHMLBX02 DOT nih DOT gov> <4EDCF0BC DOT 6090301 AT gmail DOT com> In-Reply-To: <4EDCF0BC.6090301@gmail.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id pB5I0Y2m014643 Dave Korn sent the following at Monday, December 05, 2011 11:27 AM >> Windows 7. Everything up to date. >> >> /arc/2build> gcc -o injob injob.c >> /tmp/ccOdzsVZ.o:injob.c:(.text+0x87b): undefined reference to `__imp__NtQueryInformationProcess AT 20' >> collect2: ld returned 1 exit status >> >> What am I doing wrong? > > Needs "-lntdll". Also, if obcaseinsensitive=0, the "#include " > >should be all lower-case. Thanks. But no joy. /arc/2build/C> gcc -lntdll -o injob injob-1.3.c /tmp/ccP0Ylww.o:injob-1.3.c:(.text+0x87b): undefined reference to `__imp__NtQueryInformationProcess AT 20' collect2: ld returned 1 exit status (I corrected the case of Tlhelp32.h.) - Barry Disclaimer: Statements made herein are not made on behalf of NIAID.