Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Karlj

Newbie to windows programing

This topic is 5736 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

I am an experienced unix programer, and I want to break into the windows programming world. Ive downloaded the free Borland C++Builder Compiler. (not the full builder tool, just the command line compiler) I went to lesson01, and tried to compile it. I got the message: error: unresolved external ''_main'' in [snip]COX32.OBJ Looking at the code, there was no main() section. So I added a section that looks like this: int main() { WinMain; } Now it compiles fine, but it doesnt display the window. Ive actually done some more debuging, but I dont want to confuse the issue too much. My question is: do I need the full visualC++ or C+ builder, or can I do this with just the compiler? What is special about the "lesson01.bpf" file that knows what to do with a WINAPI function? thanks Karl

Share this post


Link to post
Share on other sites
Advertisement
add "-tW" option to the command line:

bcc32 -tW filename.cpp

(more info here)

[edited by - niyaw on February 8, 2003 10:53:59 PM]

Share this post


Link to post
Share on other sites

  • 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!