This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Basic gcc compilation on cygwin64
- From: Richard H Lee <ricardohenrylee at gmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 23 Jul 2013 00:51:45 +0100
- Subject: Basic gcc compilation on cygwin64
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.
Richard
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple