Basic gcc compilation on cygwin64
JonY
10walls@gmail.com
Tue Jul 23 12:40:00 GMT 2013
On 7/23/2013 07:51, Richard H Lee wrote:
> I'm trying to compile the following basic program on cygwin64:
>> int main() {
> ;
> return 0;
> }
>> But I get the following errors:
>> $ gcc test.c
> /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -ladvapi32
> /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -lshell32
> /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -luser32
> /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -lkernel32
> collect2: error: ld returned 1 exit status
>> This is my first time using the 64-bit version of cygwin and I get the
> feeling I am missing some sort of flag or library.
>
Try rerunning setup again, there was a mistake in the w32api-runtime -1
release. -2 should have this fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130723/31cb4295/attachment.sig>
More information about the Cygwin
mailing list