|
From: H. P. A. <hp...@zy...> - 2003-04-11 06:48:59
|
Sinitsyn Valentine wrote:
> 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?
>
Is the original code part of a DLL by any chance?
-hpa
|