i am using borland c++ nowadays.
but i'm facing some problems on it.
i am also having code::blocks but i find it a bit complicated, so i want some suggestions which compiler should i use?
If you're only interested in Windows development, use Visual Studio / MSVC - unlike third party compilers, it actually was originally designed to work on Windows ;)
Code::Blocks is an IDE. You probably mean GCC.
What exactly are your problems with Borland and what's the problem with Code::Blocks? You could just try using GCC as a compiler while working in your preferred IDE (you can even program in Notepad if you want), or simply going Visual Studio.
code::blocks doesnt mean gcc. it works with a number of compilers
personally i would use the gcc because even if you want to just develop for windows, someone else might want to use your software on another os and it will be built using the right code
this download comes with everything you need. To start off. Sorry if I'm not helpful. ^_^
code blocks is a bit complicated because of many things like, i have to use "std::" with every cout or cin or any other functions in void main and absence of i/ofstream functions etc. i face too many problems with errors "this was not declared in this scope"etc. but anyway, thanks for your suggestion.
code blocks is a bit complicated because of many things like, i have to use "std::" with every cout or cin or any other functions in void main and absence of i/ofstream functions etc.
You should learn basic things about C++ standard used these days, not continue to use non-standard Borland crap used 20 years ago.
I use vc++ with Code::Blocks and they work together great together. The biggest issue with MingW (the port of GCC to windows) is that it doesn't support the full WinAPI right out of the box so you need to screw around with third party libs if you want to use things like COM.
Your choice of IDE is purely a comfort thing though. But for the actual compiler you'll save yourself a bunch of time just using vc++ or cl.
The biggest issue with MingW (the port of GCC to windows) is that it doesn't support the full WinAPI right out of the box so you need to screw around with third party libs if you want to use things like COM.
That's why I use w32runtime from MinGw-w64, it has updated windows headers, do not use usual MinGW that came with Code::Blocks, it has only partial support for winapi and COM. (usually it is only for windows xp, not later). http://tdragon.net/recentgcc/
MinGW-w64 can create BOTH x86 and x64 binaries, no reason to use outdated MinGW.
Here is another fine MinGW distro: http://nuwen.net/mingw.html
It is 64/64 but there is an earlier 32bit down the page a ways.
He includes a number of useful libraries: boost, pcre, SDL ....
The pcre is nice because C++11 regex is broken in all the MinGW ports as far as I can tell.
I used this and the TDM-GCC-64 until this week.
I am now testing the Visual Studio 2013 c++ compiler for use with my current project a Basic to c/c++ translator: http://bc9.bcxbasic.com/
Almost all the C++11 is up to date and a number of C99 updates were also added.
I do not use the Visual Studio 2013 IDE or any C++ frameworks. All compiling is done from the command line.
For Windows Development I would always go with MS Visual Studio 20**.
VS. is always better to use with the Windows API, like stated above not all IDE`s have.
Full support for the Windows API out of the box.
If I was doing anything else then specific windows programming I would go with the Qt Creator every time. Its a really great IDE (and Framework ) and if you haven't try it you really should.
It also comes with the Qt Framework that's great for creating cross platform code.