X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,TW_HD,TW_LC,TW_LG
X-Spam-Check-By: sourceware.org
From: Kraus Philipp <philipp.kraus@flashpixx.de>
Content-Type: text/plain; charset=us-ascii
Subject: linker error libcygwin
Date: Thu, 10 Nov 2011 21:39:29 +0100
Message-Id: <8DB56F04-18E5-43C3-8080-05565BA1531D@flashpixx.de>
To: cygwin@cygwin.com
Mime-Version: 1.0 (Apple Message framework v1084)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pAAKe0ca024510

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

How can I find out, why / where the problem is? Can the order of my -l flags create the problem?

Thanks

Phil

--
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


