Image Manipulation in c++ Compiling You can use g++ imageGen.cpp -lgdi32 -o imageGen.exe to compile the code if all the libraries are installed!