kriscross07 / atom-gpp-compiler

An atom package that allows you to compile and run C++ and C within the editor.
https://atom.io/packages/gpp-compiler
80 stars 230 forks source link

Can not compile C++ 11 code on a Mac #268

Open canxkoz opened 5 years ago

canxkoz commented 5 years ago

Hello I am working on a project which implements a cpp 11 specific technique. I am getting this error even though I have the most updated form of XCode.

/Users/myusername/Documents/GitHub/Gomoku-Game/GOMOKU.h:15:15:` warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
        bool refresh = false;
                     ^
/Users/myusername/Documents/GitHub/Gomoku-Game/GOMOKU.h:16:12: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
        bool show = false;
                  ^
2 warnings generated.
Undefined symbols for architecture x86_64:
  "Gomoku::showThinking(bool)", referenced from:
      _main in main-18de54.o
  "Gomoku::refreshConsole(bool)", referenced from:
      _main in main-18de54.o
  "Gomoku::StartGame()", referenced from:
      _main in main-18de54.o
  "Gomoku::Gomoku(int)", referenced from:
      _main in main-18de54.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I need to resolve this issue so that I can improve this project. Is there anyone who is getting similar errors? Note: This is my first time trying to compile code. I am confident that the package gpp-compiler is capable of running any other cpp code other than what I am trying to compile.

edwincarbajal commented 5 years ago

I have a similar issue as well