Skip to content

Instantly share code, notes, and snippets.

@serenitii
Last active January 28, 2020 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serenitii/de87f06f39792cd1f1a010cdea528697 to your computer and use it in GitHub Desktop.
Save serenitii/de87f06f39792cd1f1a010cdea528697 to your computer and use it in GitHub Desktop.
C++ 서버 개발 환경 설정

C++ 서버 개발 환경 구성

boost

https://boostorg.github.io/

MacOS
최신 버전이면 brew를 통해서 하면 되지만, 특정 버전은 b2로 설치한다

./bootstrap.sh
./b2 cxxflags="-std=c++1z -fPIC -O3" linkflags="-fPIC" link=static,shared variant=release threading=multi
./b2 install

Linux

./bootstrap.sh
./b2 --reconfigure stage toolset=gcc cxxflags="-std=c++1z -fPIC -O3 -Werror -Wno-unused-local-typedef -Wno-deprecated-declarations -Wno-unused-function" link=static,shared variant=release threading=multi linkflags="-fPIC"
sudo ./b2 install

Windows

.\bootstrap.exe
.\b2 --toolset=msvc-14.2 variant=release link=static,shared variant=release threading=multi address-model=64

flatbuffers

MacOS

brew install flatbuffers

Linux

git clone https://github.com/google/flatbuffers.git 
cd flatbuffers 
cmake -G “Unix Makefiles” make && sudo make install

MysQL

Redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment