|
From: Sinitsyn V. <Val...@us...> - 2003-04-10 18:53:44
|
Hi,
Let us suppose one have a following short program:
<CODE BEGIN>
#include <windows.h>
int WINAPI WinMainCRTStartup (HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, int nCmdShow)
{
return 0;
}
<CODE END>
When one tries to build it
gcc -c test.c
gcc -mwindows -nostdlib -o test.exe test.o
he/she will recieve a message from linker:
ld.exe: warning: cannot find entry symbol _mainCRTStartup; defaulting to 00401000
Does anyone know how to make this to link correctly?
Thanks in advance,
Valentine
|