Sign in to follow this  

Trying to compile a win32 app from the command line...

This topic is 3315 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites

This topic is 3315 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this