This is the mail archive of the
cygwin
mailing list for the Cygwin project.
G77, libg2c and a linking problem
- From: Angelo Graziosi <Angelo dot Graziosi at roma1 dot infn dot it>
- To: cygwin at cygwin dot com
- Date: Fri, 15 Sep 2006 14:00:32 +0200 (MET DST)
- Subject: G77, libg2c and a linking problem
I would know if the following is a normal behaviour...
program hello
implicit none
write(*,*) 'Hello!'
end
$ g77 hello.F -o hello -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -lg2c
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xab):
undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
... or if it is a problem.
I use GCC-3.4.4-2.
Cheers,
Angelo.
--
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/