Add additional notes about CPPTRACE_STATIC_DEFINE

This commit is contained in:
Jeremy 2024-04-30 23:18:30 -05:00
parent 14d25fd89a
commit beb5506233
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -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