How Can I send .exe files that will still execute on the recipients computer? - c++

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?

Related

Can't run .exe file on another computer

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 :)

Error running a program compiled on a different PC

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?

Code::Blocks program doesn't run properly when run button is hit

I have been compiling and running programs in C++ on Code::Blocks longly but today one of my programs compiled successfully but when I ran the program it returned -12 with time -0.00s. Whenever I write a new program in C++ the program compiles but it doesn't run. Also when I open the executable file created by Code::Blocks in the same directory Windows takes permission from me to allow the executable file to make changes to the computer. I've been trying through the day but I couldn't figure out what could be going wrong.
Also when I tried uninstalling Code::Blocks it didn't uninstall completely and when I opened the Code::Blocks folder in Program Files and tried deleting the folder the folder MinGW couldn't be deleted because Access was denied.
Please help if you could comprehend the problem and have knowledge regarding the issue.

How to run .exe files output by Turbo C++?

I wrote a program in Turbo C++, and compiled it there. Everything was successful, and the program ran as expected. Now, I want to run the program as an exe file. I found the exe file in a separate folder named 'Source'. But whenever I try to run it, I get the error :"This app can't run on your PC. To find a version for your PC, check with the software publisher." None of the exe files in that folder are working, although all the other softwares (like Photoshop) are opening fine.
Could someone help me please?
The OS on your PC probably is 64 bit. So the older 16 bit application would not run on it. I suggest you to use some virtual machine with installed OS DOS (or free DOSBOX for example), or try to compile your program on more modern compiler.
write
system("PAUSE");
before return 0;

C++ Cygwin compiled file (.exe file) not being found

I'm using Cygwin to compile and run my c++ files. I have already been able to run my files on this computer (just working yesterday), but today I started my computer and tried doing it again, but now it is not working.
When I compile my file, the .exe file (that was working and saved yesterday in the same folder) shows up for a couple of seconds (while the terminal loads the next line of command) then, the .exe file disappears when the terminal brings up the next line of the command prompt.
I have been searching for a fix but can't seem to find a solution, any ideas on what I can do?
I will wait some time and update the post if anything else happens.