This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Cannot compile using gcc (GetModuleHandleA error)
- To: cygwin at cygwin dot com
- Subject: Cannot compile using gcc (GetModuleHandleA error)
- From: "Ajay Neti" <ajaykumarn at hotmail dot com>
- Date: Mon, 07 May 2001 15:40:16
- Cc: ajaykumarn at infy dot com
Hi,
I have extracted the gcc zip file from cygwin site, and I am
trying to compile the following C file on Windows 98 :-
int main(int argc, char** argv) {
int a= 3+2;
return 0;
}
The compiler command I give and the error I get are :-
D:\dev>gcc -I D:\Cygnus\usr\include -L C:\Windows\System hello.c
/cygdrive/d/CYGNUS/USR/BIN/../lib/libcygwin.a(_cygwin_crt0_common.o)(.text+0xe6)
:_cygwin_crt0_common.cc: undefined reference to `GetModuleHandleA@4'
collect2: ld returned 1 exit status
Any ideas on how to fix this?
I saw some of the archived messages on this mail list, and I
tried to link to various *32 libraries as indicated there, but I
always ended up with the same error.
Thanks a bunch,
Ajay
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple