Why do my c++ apps crash on computers that don't have platform sdk/visualc+ installed
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
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.
I just tried that on my friends computer, same error :(
And I just made a really simple program to test:
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?
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?
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++
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
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
Are you sure you are not using .NET ?
And btw, there should be some sort of error message showing out, Please write it here.
And btw, there should be some sort of error message showing out, Please write it here.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement