How to install g++ in Cygwin?

Finally I could find the answer in this link. If one uses the MinGW installation file again, one can add some other packages. I installed all Devel packages for MinGW and followed this tutorial which helped me to solve the problem.

How do I include a path to libraries in g++

To specify a directory to search for (binary) libraries, you just use -L: To specify the actual library name, you use -l: To specify a directory to search for include files (different from libraries!) you use -I: So I think what you want is something like These compiler flags (amongst others) can also be found at the GNU GCC Command … Read more

How do I enable C++11 in gcc?

H2CO3 is right, you can use a makefile with the CXXFLAGS set with -std=c++11 A makefile is a simple text file with instructions about how to compile your program. Create a new file named Makefile (with a capital M). To automatically compile your code just type the make command in a terminal. You may have to install … Read more