Jump to content
  • Advertisement
Sign in to follow this  

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

This topic is 3678 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!