This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Error message when compling simple program, help please :)
- From: "Tomasz Rojek" <tiroy at poczta dot onet dot pl>
- To: cygwin at cygwin dot com
- Date: Wed, 11 Jun 2003 23:03:04 +0200
- Subject: Re: Error message when compling simple program, help please :)
- References: <Law9-F37Y8M9Z64s7Go000a1abb@hotmail.com>
> 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/