Greets.
> Hey all. Whats up. I have a problem when Im trying to
> compile a simple window program. I keep on getting the
> error message:
>
>
> C:\Documents and Settings\Miguel\Desktop\Enticing
> Software\Demos\DEMO2_3.CPP
> [Warning] In function `int WinMain(HINSTANCE__ *,
> HINSTANCE__ *, CHAR *, int)':
>
> 114 C:\Documents and Settings\Miguel\Desktop\Enticing
> Software\Demos\DEMO2_3.CPP
> [Warning] converting NULL to non-pointer type
>
> C:\DOCUME~1\MIGUEL~1\LOCALS~1\Temp\ccuabaaa.o
> [Warning] In function `WinMain':
>
>
> [Linker error] undefined reference to
> `GetStockObject@4'
>
> I have worked with the compiler options and the
> directories but nothing. I tried it with VC++ and it
> worked fine. Now Im using version 4.9.5.0. Any reply
> would be greatly appreciated. Thanks. Oh and the
> source is attached.
>
> - Miguel
Try pasting the code into a new Windows GUI project. Alternately, link it
with the gdi lib (add '-lgdi32' to the command-line).
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|