I have written a small program on a PC in VS Code. I have taken 2 files which are source.cpp and exe file to another PC by USB.
At first I got some DLL errors, but I solved these problems. However, I am still getting an error that "Application unable to start correctly error 0x000007b".
I have tried every solution on the internet but the problem still exists. Both PCs are x64. Is there any way to run a program which is taken to another PC?
Related
I'm trying to figure out why my application will not run on another windows computer. I have tried to run the exe file on multiple other computers where it starts the application up fine, however, when running it on a Teguar running windows 10, the application throws an exception.
It seems like the problem accurs when I try to use Open3D, since when I don't include Open3D the application can run on the computer. However, the program can still run on all other computers with Open3D included just not on the Teguar.
I have tried to run the exe file through "SimpleProgramDebugger" and here I can see what files are called. This is the files from my own computer where the program runs fine.
Here is an image of the files from the Teguar:
And lastly here is the message on I am given when simply running the application:
Hopefully someone can help with this frustrating problem :)
I've written and compiled a program in c++ that does replaces an online calculator for a business. How can I send them this file in a way that will allow them to run the program without downloading a compiler?
I have tried sending the file as a .txt and changing it to a .exe, as well as sharing a google drive.
When I run the program from my own laptop desktop it is successful, but throws the following error message on the recipients laptop:
The code execution cannot proceed because libstdc++-6.dll was not found. Reinstalling the program may fix this problem.
I assume that this is because they do not have the compiler downloaded (I used VSC to write and compile). Is there any way around them downloading VSC and compiling the code themselves?
I am building an application, and I just pulled the source code onto a new computer. I am able to compile and build the program on the new computer, but when I try to run the executable I get an "Application start correctly" error.
I can take the executable that was built on the problem computer run it on my other machines and it works fine. Dependency Walker doesn't highlight any obvious deficiencies; the output looks similar to the output from the functioning machines. I also reinstalled the VS C++ redistributable.
It seems like there must be some way in which the environment on the new computer is different, but I don't know where or how to start looking.
All credit to #PaulMcKenzie in the comments above. My problem ended up being that I'm using an x64 application, and my Windows search path was finding and trying to use x86 DLLs, which caused the crash. I found this out through a closer examination of the Dependency Walker output.
I have created a cpp file using Microsoft Visual Studio 2010 and Allegro. It runs perfectly fine in the Visual Studio interface, but when I compile it into an exe, it says:
"The program can't start because allegro-5.0.10-monolith-md-debug.dll is missing from your computer. Try reinstalling the program to fix this problem."
I am running the exe on the same computer I used to write the code and debug it, so it shouldn't be the fault of a missing dll. Should it? That doesn't make sense to me.... I have compiled other exes before, and they do run on other computers, and the Allegro one works just fine while it's a cpp file, but when the Allegro file is run as an exe, it says I don't have the monolith thing.
Why is the file failing as an exe, but not a cpp?
This is what worked for me:
When in Configuration Properties -> Debugging
- Add PATH=c:\allegro\bin;%PATH% to the Environment Variable.
I had the exact same error, the program was telling me that it couldn't find the monolith DLL file. What I had noticed is instead of PATH=c:\allegro\bin;%PATH% I had put PATH=c:\allegro\bin:%PATH%. The difference is not easy to spot.
I put a : instead of a ; between bin and %PATH%
it was an easy mistake, however it caused me about 3 hours of heartache to fix.
I have written a C++ code that uses some of the Qt static libraries.
I compile the code using MSVS2010 (on Windows 7) and then run the created .exe-file on a second machine.
I have compiled the exact same code on the same machine 2 different times and the .exe code that is generated crashes on the second machine when that machine's (Windows XP) screen saver starts, I have compiled the same code another time (nothing has changed in the code or the compiler or its settings) and the generated .exe-file does work fine.
Has anybody an idea on what can cause this?
Is there a way I can debug this issue?
Could the fact that at different times maybe different other programs are open affect the compilation?
The problem is not with the compilation process (it will always produce the same binary provided you didn't change the sources) but with the execution environment.
There seems to be something on your second machine that makes your program crash intermittently (or it could well be that it has nothing to do with that second machine, and that your program crashes intermittently everywhere). To debug that, you may end up having to install a debugging environment on the second machine and hope the problem arises again, or you could also try to reproduce the crash on your development machine.