Skip to content
Sang-Kil Park edited this page Mar 6, 2019 · 3 revisions

If you want to use Crow, just download amalgamate/crow_all.h and include it at your source file.

You need to link with boost_thread and boost_system. Check Dependency section.

Dependency

Crow dependes on boost library for asio and other utilities.

Use your package manager to install boost and don't forget to linking to boost-thread and boost-system.

sudo apt install libboost-all-dev libssl-dev  # (Ubuntu)
brew install boost  # (Mac)

g++ -O3 -std=c++11 server.cpp -lboost_thread -lboost_system -pthread
g++ -O3 -std=c++11 server.cpp -lboost_thread_mt -lboost_system_mt -pthread # if linker cannot find boost_system, try this

On OS X

g++ -O3 -std=c++14 server.cpp -lboost_thread-mt -lboost_system-mt -pthread

For better performance, it is recommended to use a custom memory allocator like tcmalloc or jemalloc

Clone this wiki locally