Hello, recently I bought a macbook and changed my operating system to Mac Os, now I have many problems with coding with my new operating system. I'm already using Xcode and compile my codes with gcc, can anyone explain any way or how to compile codes with g++, for example a program or a compiler?
thank you
Just Google It ... :))
thank you for advice :D
You can use vim for coding and g++ for compiling your codes. You can write your own Makefile and bind some keys in vim for making and running. You can also use Sublime Text 3. Another warrant is to install virtual machine and Visual Studio.
thank you, as you said I found wim best way for coding on mac (g++)
You can use Qt Creator if you want to use gcc with an IDE. It can be configured for custom debugger like gdb.
Sublime Text supports custom build systems where you can bind a proper gcc call for a keyboard shortcut (cmd+B default) and see the program output or compiler error etc. And, of course, some advanced stuff like emacs or vim support that as well.
But Xcode is quite a decent IDE after all, even for C++ coding. I don't think that clang is any worse than gcc at anything.