From 44f4413d5be936e64afe58246fd21bf7f09da2c9 Mon Sep 17 00:00:00 2001 From: mahuntington Date: Sat, 25 Feb 2023 22:37:56 -0500 Subject: [PATCH] Update 'README.md' --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 99cc149..f3d3385 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,33 @@ ### Debian +#### Install + ``` sudo apt install build-essential sudo apt install libasio-dev wget https://github.com/CrowCpp/Crow/releases/download/v1.0%2B5/crow-v1.0+5.deb sudo dpkg -i crow-v1.0+5.deb +``` + +#### Compile + +``` g++ test.cpp -lpthread ``` ### OS X +#### Install + ``` brew install asio brew install boost +``` + +#### Compile + +``` g++ -std=c++11 -Wall -Wextra -Werror server.cpp -lpthread ``` @@ -24,7 +38,22 @@ g++ -std=c++11 -Wall -Wextra -Werror server.cpp -lpthread ### Debian +#### Install + ``` sudo apt install libmysqlcppconn-dev +``` + +#### Compile + +``` g++ -I/usr/include/cppconn mysql.cpp -lmysqlcppconn ``` + +## Compile App + +### Debian + +``` +g++ -I/usr/include/cppconn server.cpp -lpthread -lmysqlcppconn +``` \ No newline at end of file