Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

Why do my c++ apps crash on computers that don't have platform sdk/visualc+ installed

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

Hi, when I try to run my c++ programs, console and win32, it crashes on computers that I haven't installed the visualc++2005/platform sdk. It gives some kind of error message referring to the program not installed properly, which is kinda weird, since Im not doing any installing. Does anyone know what this could be? I think its because the computer doesn't have the dll libraries, but how can i find out what libraries are required? thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by johnnyBravo
Hi, when I try to run my c++ programs, console and win32, it crashes on computers that I haven't installed the visualc++2005/platform sdk.
It gives some kind of error message referring to the program not installed properly, which is kinda weird, since Im not doing any installing.

Does anyone know what this could be?

I think its because the computer doesn't have the dll libraries, but how can i find out what libraries are required?

thanks

Are you compiling in release mode (and not in debug mode)? The debug versions of most libraries don't ship with the runtimes that an end user would have, so when they try to run your program, it looks for the debug library and fails because it can't find them.

Share this post


Link to post
Share on other sites
I just tried that on my friends computer, same error :(

And I just made a really simple program to test:

#include <iostream>
using namespace std;

int main() {
cout << "test\n";
system("pause");
}



I don't understand why there is such a problem, how on earth do people distribute programs in visualc++ 2005 beta2, if this doesn't even work?

Share this post


Link to post
Share on other sites
You need the visual c++ 2005 runtimes. I'm not sure what they're called, but they're prbly something like vc80.dll or msvcr80.dll. Look around the bin folder where you installed visual c++

Share this post


Link to post
Share on other sites
I've tried putting the msvcr80.dll in the same directory as the executable, but it doesn't seem make a difference. Is there anything else that I am missing?

Also there seem to be many versions of the msvcr80.dll. eg amd64\, x86_amd64\, bin\, ia64\, x86_ia64. So i used the bin\ one.

thanks

Share this post


Link to post
Share on other sites
Are you sure you are not using .NET ?

And btw, there should be some sort of error message showing out, Please write it here.

Share this post


Link to post
Share on other sites
It gives this msg:


I'm fairly sure im not using .net, as I created a console app, and i had installed the platform sdk.

Is there some way of testing if it is the .net problem?

thanks

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!