Jump to content
  • Advertisement
Sign in to follow this  
sipickles

Setting up the VC 2003 toolkit

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

Can anyone guide me with the correct procedure for setting up the VC2003 with its toolkit, to use its optimizing compiler? I am a bit out my depth! I know I have to point to the toolkit bin folder, but I'm not sure how to get the vcvars32.bat into the command line during compilation Many Thanks Simon

Share this post


Link to post
Share on other sites
Advertisement
You don't need the vcvars32.bat if you run the compiler from the IDE. All you need to do is add the toolkit's bin directory to the top of the executables directory list in the options in Tools/Options/Projects/VC++ Directories.

Share this post


Link to post
Share on other sites
Ah yes, sorry, I see that now.

What compiler optimisation options do you recommend, Dave?

/G7 for p4 and athlons?

I think I am missing something vital, since I can't see any improvement in performance yet.
I get an error saying optimisations not allowed in standard version if I use /O2.

I was better with VC6! :)



ANy advice gratefully received.



Simon

Share this post


Link to post
Share on other sites
Hmm,

When I include /O2 or /Ox I get this build warning

Compiling...
cl : Command line warning D4029 : optimization is not available in the standard edition compiler


Its like my IDE is not aware of the toolkit, although its added to the VC directories.

WHen I say its added, I mean the bin directory is included. How do I make the IDE use the cl.exe that in the bin directory.

Thanks

Simon

Share this post


Link to post
Share on other sites
Yes, it is at the top of the list of

options>projects>vc++directories>>Executable files

Hmm, yes i see what you mean.

SHould look in there first for cl.exe

hmm

Si

Share this post


Link to post
Share on other sites
If you have "C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin" (or wherever you installed your toolkit) at the top of your executables list, then it should automatically use your toolkit's cl.exe. That's how I have mine set up and it definitely uses the optimizing compiler. I turned the /nologo option off to confirm that.

Share this post


Link to post
Share on other sites
Hmm,

Then maybe it is working.

I see very little performance increase tho,

My game controls are very laggy, fps is about a third of what it was using VC6.

I have tried several different D3D9 frameworks to ascertain whether I was setting DX9 up in an inefficient way. All the same result.

Maybe I'll have to blow the dust off the VC6!!! :P

Simon

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.

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!