From beb550623359c31dd7c89239e6f4cbfc6a6dc25f Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Tue, 30 Apr 2024 23:18:30 -0500 Subject: [PATCH] Add additional notes about CPPTRACE_STATIC_DEFINE --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 977c7a4..ddbf438 100644 --- a/README.md +++ b/README.md @@ -621,6 +621,9 @@ g++ main.cpp -o main -g -Wall -lcpptrace ./main ``` +> [!IMPORTANT] +> If you aren't using cmake and are linking statically you must manually specify `-DCPPTRACE_STATIC_DEFINE`. + If you get an error along the lines of ``` error while loading shared libraries: libcpptrace.so: cannot open shared object file: No such file or directory @@ -671,6 +674,9 @@ Using manually: g++ main.cpp -o main -g -Wall -I$HOME/wherever/include -L$HOME/wherever/lib -lcpptrace ``` +> [!IMPORTANT] +> If you aren't using cmake and are linking statically you must manually specify `-DCPPTRACE_STATIC_DEFINE`. + ## Use Without CMake To use the library without cmake first follow the installation instructions at