This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: What's wrong? help


Did you check the FAQ?

Why the undefined reference to `WinMain at 16'?
<http://cygwin.com/faq/faq_4.html#SEC95>

Larry

Original Message:
-----------------
From: Suetlam Chung slfchung at yahoo dot com
Date: Thu, 17 Apr 2003 09:22:47 -0700 (PDT)
To: cygwin at cygwin dot com
Subject: What's wrong? help


Hi all,

I am compiling my sample programe to generate 
a random variates. The following reponse come up
+++++++++++++++++++++++++++++++++++++++++++++ 
$gcc sample2.c -lgsl -lgslcblas -lm
sample2.c:45:2: warning: no newline at end of file
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.text+0
x7c)
 undefined reference to `_WinMain at 16'
collect2: ld returned 1 exit status
++++++++++++++++++++++++++++++++++++++++++++++
What does it mean ....is it my program problem ?
or
my cygwin linking problem?..

I install cygwin in c:\cygwin
My OS is win 2K
and my sample program in stored in usr\bin
and I compile my program in usr\bin directory
because I got linking problem with cygwin.dll so
I do in under the usr\bin....

Many thanks

Felix

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]