C++ compiler (2 questions)

Sep 3, 2014 at 2:31pm
1. Is there any window based C++ compiler besides Codeblocks?
2. If I just want to run a C++ program in Visual C++, do I really have to create a project? In other words is there any way to just run C++ file without creating a project for every tutorial program that I am creating?
Sep 3, 2014 at 2:45pm
1. you can install "gcc" separately on your system and run programs from the command line . Also there are other compilers available for windows ,which you can download like Intel c++ compiler .

instructions for installing gcc :
http://www.mingw.org/wiki/InstallationHOWTOforMinGW
Sep 3, 2014 at 2:49pm
2. if you want to save files on separate projects , you have to make a project every time .If you don't want to save the file ,you can delete the code and write down the new code.
Warning : I don't know if you are using dependencies and libraries that might disrupt the pre set code , so please be careful .

You can also use a online compiler and save links if that works for you :
http://coliru.stacked-crooked.com
Sep 3, 2014 at 2:56pm
Great. Let me try the intel one.
Sep 3, 2014 at 9:58pm
Codeblocks isn't a compiler, it's an IDE.

Try out MinGW, which is based on GCC.
Sep 5, 2014 at 6:23pm
Yes. It's an IDE but it can also build and run my C++ programs. I will certainly check MinGW. Thanks very much.
Sep 5, 2014 at 6:25pm
An IDE does not build and run your programs, the IDE takes your programs and gives them to a compiler.
Sep 5, 2014 at 7:06pm
I am new to programming so I don't know certain things. So I am assuming that since I build and run programs in Codeblocks which is an IDE, it should have an inbuilt complier minGW that builds and runs my program.
I checked the Settings>Compliers from the Menu of Codeblocks and it gives me a list of Global compliers to choose from. It has GNU GCC compiler by default selected. How do I know which is the best complier from the list. Some of them I am listing here:
- Microsoft Visual C++
- Borland C++
- Intel C/C++
- Microsoft Visual C++ toolkit 2003
There are others too and also there is an option for No complier.
Please give me some more education on IDE and Compilers.
Sep 5, 2014 at 7:19pm
Use whichever compiler works best for environment and project. Different compilers have different levels of C++11/C++14 support, and they also have different levels of support for the operating system you are on. If what you have works, don't worry about changing it.
Last edited on Sep 5, 2014 at 7:19pm
Sep 5, 2014 at 7:34pm
I am learning C++ using this book that has 19 chapters. I am down to chapter 10 that talks about vectors and sorting. Up to now the default compiler works just fine. Other good thing I like about using Codeblocks as my IDE is I can build and run a c++ source file without creating a project.
Now can you tell me what is C++11/C++14??
Sep 5, 2014 at 8:30pm
Sep 5, 2014 at 8:32pm
Just was reading it. Thanks a lot.
Topic archived. No new replies allowed.