From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10072 invoked by alias); 10 Nov 2011 21:04:51 -0000 Received: (qmail 10057 invoked by uid 22791); 10 Nov 2011 21:04:50 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_HD,TW_LC,TW_LG X-Spam-Check-By: sourceware.org Received: from mail-wy0-f171.google.com (HELO mail-wy0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Nov 2011 21:04:37 +0000 Received: by wyh11 with SMTP id 11so4048730wyh.2 for ; Thu, 10 Nov 2011 13:04:35 -0800 (PST) Received: by 10.180.3.71 with SMTP id a7mr11094129wia.0.1320959075375; Thu, 10 Nov 2011 13:04:35 -0800 (PST) Received: from [192.168.2.195] (93-33-110-107.ip44.fastwebnet.it. [93.33.110.107]) by mx.google.com with ESMTPS id ff6sm10967209wbb.10.2011.11.10.13.04.34 (version=SSLv3 cipher=OTHER); Thu, 10 Nov 2011 13:04:34 -0800 (PST) Message-ID: <4EBC3C61.3080404@gmail.com> Date: Thu, 10 Nov 2011 21:04:00 -0000 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: linker error libcygwin References: <8DB56F04-18E5-43C3-8080-05565BA1531D@flashpixx.de> In-Reply-To: <8DB56F04-18E5-43C3-8080-05565BA1531D@flashpixx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00194.txt.bz2 On 11/10/2011 9:39 PM, Kraus Philipp wrote: > Hello, > > I try to build a program with g++ under Cygwin. I added this libraries to the linker: > -lcygboost_system > -lcygboost_thread > -lcygboost_iostreams > -lcygboost_regex > -lcygboost_program_options > -lboost_exception > -lcygboost_filesystem > -llapack > -lcblas > -lf77blas > -latlas > -lgfortran > -lhdf5_cpp > -lhdf5 > > The linker create the error: > > /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9): > undefined reference to `_WinMain@16' > collect2: ld returned 1 exit status http://cygwin.com/faq-nochunks.html#faq.programming.winmain > > How can I find out, why / where the problem is? Can the order of my -l flags create the problem? always on windows > > Thanks > > Phil 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