This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error message when compling simple program, help please :)


> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]