X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=Q2Z ztpdY2z/RXRhtS4ubIQ9fLNXVhublYOPHrWjQ4ZoVYzaDk56Dt+O/YzkP1Bc9snq 6NAIG9S6jdc2+KkApdoC/SDS9xKE/JJrQF7jKvmEzH40sMwMmXsieU0UuXDg1xcg 31jJhApXJkd1sOxL0iboZrAHnlrZbZJZu5kw2m0U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=7ErOeVBQt DSafXeDABk6nHfsQ5Y=; b=cey+BDCx2GmkHI2rUeI+lRtjX/tqnQfhiv0q1WH8k MWrfyoqSrxO3Zuq7UenmE5izINmJBQTYNulML899nfAzQ9G7B/6FazkImQG6YYNf 4hBMsYBBEyPfaA0IRMzbNGtSgFcg0mMFuSmXMrMcFgtHtevhj0yjgsp4OUHRPjwb 4E= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 X-Received: by 10.194.109.104 with SMTP id hr8mr21016174wjb.32.1374537119849; Mon, 22 Jul 2013 16:51:59 -0700 (PDT) Message-ID: <51EDC591.40505@gmail.com> Date: Tue, 23 Jul 2013 00:51:45 +0100 From: Richard H Lee User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: "cygwin AT cygwin DOT com" Subject: Basic gcc compilation on cygwin64 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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