P
P
Profi_GMan2018-01-01 17:29:15
C++ / C#
Profi_GMan, 2018-01-01 17:29:15

How do I fix the undefined symbol reference error?

Good day!
I know that this error means that you need to include a library, but which one? And where?
Here is my "symbol":
"[email protected]@CXXABI_1.3"
I am using cmake. I used to add -lz to the compilation, but I don’t know where to add it now (in cmake - noob).
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2018-01-01
@vt4a2h

CMake has the ability to use the automatic zlib search (if this symbol is really from there) https://cmake.org/cmake/help/v3.10/module/FindZLIB.html .
Or add your flag to the linker flags.
I don’t give detailed instructions, otherwise you’ll forget how to google. Noob no noob - that's no excuse.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question