Codeforces и Polygon могут быть недоступны в период с 23 мая, 7:00 (МСК) по 23 мая, 11:00 (МСК) в связи с проведением технических работ. ×

Блог пользователя iPs

Автор iPs, 10 лет назад, По-английски

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

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится
»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.

  • »
    »
    10 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    thank you, as you said I found wim best way for coding on mac (g++)

»
10 лет назад, # |
Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

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.