public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Philipp Kraus <philipp.kraus@flashpixx.de>
To: cygwin@cygwin.com
Subject: Re: linker error libcygwin
Date: Thu, 10 Nov 2011 21:20:00 -0000	[thread overview]
Message-ID: <j9hf54$4cn$1@dough.gmane.org> (raw)
In-Reply-To: <4EBC3C61.3080404@gmail.com>

On 2011-11-10 22:04:33 +0100, Marco Atzeri said:

> 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

yes, but I can add the -lm flag, but it does not solve the problem

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

  reply	other threads:[~2011-11-10 21:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10 20:39 Kraus Philipp
2011-11-10 21:04 ` Marco Atzeri
2011-11-10 21:20   ` Philipp Kraus [this message]
2011-11-10 21:12 ` Greg Chicares
2011-11-10 21:25   ` Philipp Kraus
2011-11-11  0:58     ` Greg Chicares
2011-11-11 11:48       ` Philipp Kraus
2011-11-13 11:44       ` Philipp Kraus
2011-11-13 12:59         ` Philipp Kraus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='j9hf54$4cn$1@dough.gmane.org' \
    --to=philipp.kraus@flashpixx.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).