Mark Taylor wrote:
#include <windows.h>
int STDCALL WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) { MessageBox (NULL, "Hello, Windows!", "Hello", MB_OK); return 0; }
I was getting undefined references to messagebox at the linking stage. To compile I did...
gpc -mno_cygwin -mwindows whello.pas -o whello.exe
This was a nice example in C. But how does your whello.pas look like?
Peter