Jump to content
  • Advertisement
Sign in to follow this  
Ned_K

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

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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!