How To Compile and Run C++ From a USB Flash Drive


If you are a programmer that is on the go a lot you might have wondered how to compile and run C++ programs from a USB flash drive. The process to get an IDE on a flash drive is actually quite simple and doesn’t take long to do at all. This process will involve a portable app called DevC++ and will allow you to have a fully integrated IDE on your USB flash drive. There isn’t much of an install in this case since portable apps are usually stand alone and can run by themselves. This basically means the .exe file is all inclusive.

Portable Compiler of Choice


how to compile and run C++ programs from a usb flash drive

Go ahead and download DevC++. The install is as simple as just dragging the .exe file to your USB drive. Once the .exe file for the IDE is on your USB drive you can easily open the program, click file, then new, and finally source code or project. The files you save can be stored anywhere on your USB flash drive and can be opened again simply by going to file and clicking open then locating the files you want to open. 

DevC++ is truly an amazing program that makes it super easy to get a C++ compiler installed on any portable device. If you have any trouble figuring out how to compile and run C++ programs on a USB flash drive from the DevC++ IDE just leave a comment below.