Trying to compile a win32 app from the command line...
Ok, I'm missing something really basic.
Take this simple example program:
//test32.c
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Test"), TEXT ("Test"), 0) ;
return 0 ;
}
It obviously compiles and runs just fine in VS2005 and 2008.
But what do I have to do to get this to compile using the SDK windows C compiler (from the SDK command prompt)? cl win32.c doesn't cut it.
I assume that just like in VS I have to communicate that this is a non-console win32 app, yes? But how to do so without VS... I'm having a devil of a time finding documentation on command line compiling details.
Either way, anyone have an idea of what obvious thing I am overlooking?
Thanks!
[Edited by - Ned_K on November 13, 2008 7:15:59 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement