public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* linker error libcygwin
@ 2011-11-10 20:39 Kraus Philipp
  2011-11-10 21:04 ` Marco Atzeri
  2011-11-10 21:12 ` Greg Chicares
  0 siblings, 2 replies; 9+ messages in thread
From: Kraus Philipp @ 2011-11-10 20:39 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-13 12:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-10 20:39 linker error libcygwin Kraus Philipp
2011-11-10 21:04 ` Marco Atzeri
2011-11-10 21:20   ` Philipp Kraus
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

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