delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/10/16:05:05

X-Recipient: archive-cygwin AT delorie DOT com
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
Message-ID: <4EBC3C61.3080404@gmail.com>
Date: Thu, 10 Nov 2011 22:04:33 +0100
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: linker error libcygwin
References: <8DB56F04-18E5-43C3-8080-05565BA1531D AT flashpixx DOT de>
In-Reply-To: <8DB56F04-18E5-43C3-8080-05565BA1531D@flashpixx.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019