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:from:subject:to:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Gff NwbooN+82bIlThRCYO4w5Leh4C5pCNwkpD4vNY6G+H4XQFtIx1WXDt+jMy6Qpd83 647GDLRmSmwebg3nwKZsdqPkh2y0UyBqSZGw4uwzQqsJM9Zee/fpbUx+QzuwMmga jKNLPXklTwndicOKJfKYnLepoWV26jej7HMCYREA= 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:from:subject:to:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=0SnknsAVE UbJADehZ0IA15q4yu8=; b=Ph6nksoBLij7Kk8XGmpv2NbR8ACmAVXGty5v8tLCs 0CogSyyXcsG1/mtCaVfY/AN5S+UVff2wCftkc8oIKynFwTbZNJAnT1DAG5K65SOi RcwKRrPGlOUDSzxkTiwV1jHm3r3m2/C2s224rwXqAiptJJH87E/IeBi2dv682WG8 zw= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Package X-HELO: mail-wm0-f47.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=hpodOzO5Ehx74caGI+vcPbK2tXb0kiIHnaHNo1AGAUU=; b=ASxiK3RIRx2ScCcu3Bshsr8DvMfHbDXxs+QW/je2jVUpyM00QgQaB2wTlAhMKORLjB 8NpULho0dqe0C9gfaClF5dS4tGEIQ48gqd3tZ1Xmk68FPcQXehlPeCR194EcnH+kL/74 6nFIl4L5KMQmZbtQJ9IrSAmwAelNIHQ03SfSPbvdgkhDAThBZi3avqyoVDrcrA1LfEzk dWcNAehfsu8CZxDWId+oHCQk37qUvPIYUN4KC5rBJGCmjAyiL6UHymJhUdjZTmIgVfTK 87hqxJWC1j1NgD/IMhO1LLWwSE8gaeWlftm88z2nMw+h2aM0eWIc2tjtuMVG1yTNviej LBFQ== X-Gm-Message-State: AOPr4FVpToN5Mqiw1aU/xRwTVRVgXkdz0c+TmYxW4hlczoPVHGSNxxh8rb0KeloqCINTBg== X-Received: by 10.28.147.8 with SMTP id v8mr12941025wmd.92.1461606395719; Mon, 25 Apr 2016 10:46:35 -0700 (PDT) From: Marco Atzeri Subject: gcc x86 - problem on library search order To: "cygwin AT cygwin DOT com" Message-ID: Date: Mon, 25 Apr 2016 19:46:26 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Visible on 32bit and not present on 64bit $ cat uuid.c #include int main () { uuid_t out; uuid_generate_random(out); return 0; } $ gcc uuid.c -luuid /tmp/ccLlmFMf.o:uuid.c:(.text+0x16): undefined reference to `uuid_generate_random' collect2: error: ld returned 1 exit status $ gcc uuid.c -luuid -L /usr/lib The problem seems "/usr/lib/w32api" searched before "/usr/lib" $ cygcheck -l w32api-runtime |grep libuuid. /usr/lib/w32api/libuuid.a $ cygcheck -l libuuid-devel |grep libuuid.dll /usr/lib/libuuid.dll.a $ cygcheck -c gcc-core Cygwin Package Information Package Version Status gcc-core 5.3.0-4 OK Marco -- 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