undefined reference to `pugi::xml_document::xml_document()' #521
-
I used pugi to initialize an instance, but report a problem: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to link to pugixml library somehow, either by using CMake dependency, or by adding pugixml.cpp to your compilation project, or by depending on a system-provided pugixml library (libpugixml-dev might install it on Ubuntu). See https://pugixml.org/docs/manual.html#install.building |
Beta Was this translation helpful? Give feedback.
You need to link to pugixml library somehow, either by using CMake dependency, or by adding pugixml.cpp to your compilation project, or by depending on a system-provided pugixml library (libpugixml-dev might install it on Ubuntu). See https://pugixml.org/docs/manual.html#install.building