| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| X-Injected-Via-Gmane: | http://gmane.org/ |
| To: | cygwin AT cygwin DOT com |
| From: | "Tomasz Rojek" <tiroy AT poczta DOT onet DOT pl> |
| Subject: | Re: Error message when compling simple program, help please :) |
| Date: | Wed, 11 Jun 2003 23:03:04 +0200 |
| Lines: | 21 |
| Message-ID: | <bc85j8$hds$1@main.gmane.org> |
| References: | <Law9-F37Y8M9Z64s7Go000a1abb AT hotmail DOT com> |
| X-Complaints-To: | usenet AT main DOT gmane DOT org |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 6.00.2800.1158 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1165 |
> I am using the following command: > > $ gcc 02l01.c > /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: > cannot find -luser32 > collect2: ld returned 1 exit status Hi Max, I would advise you to go thru the archive. There you can find a simplest syntax how to compile a C program using gcc on Cygwin. In shorter way - below syntax creates desired binary (at least for me :) gcc 02l01.c -o 02l01.exe so you have to specify output binary file and that's all ;-) Greetings -- Tomasz Rojek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |