DEV Community

Youngjoon Won
Youngjoon Won

Posted on • Updated on

gcc libs@mac using homebrew

Installed on Mac Studio M2 Ultra (Sonoma):

brew install gcc@13
brew install openssl@3
brew install boost
brew install boost-build
brew install curl
brew install jsoncpp
brew install json-glib
brew install googletest
brew install gsl

cd cpp-jwt
cmake .
Enter fullscreen mode Exit fullscreen mode

makefile flags config:

LIBOPENSSL_LIBS=-L/opt/homebrew/opt/openssl/lib
LIBOPENSSL_CFLAGS=-I/opt/homebrew/opt/openssl/include
LIBBOOST_LIBS=-L/opt/homebrew/opt/boost/lib
LIBBOOST_CFLAGS=-I/opt/homebrew/opt/boost/include
LIBCURL_LIBS=-L/opt/homebrew/opt/curl/lib
LIBCURL_CFLAGS=-I/opt/homebrew/opt/curl/include
LIBJSON_CFLAGS=-I/opt/homebrew/opt/jsoncpp/include

CC = g++-14

...
-lboost_system -lpthread -lssl -lcrypto -lcurl -latomic -std=c++14
...
Enter fullscreen mode Exit fullscreen mode

Top comments (0)