Closed nekiro closed 1 year ago
This sounds like a configuration issue of some sort, but it works just fine for me on homebrew version of pugixml with an M2 system with this isolated code snippet:
#include <pugixml.hpp>
#include <stdio.h>
int main()
{
pugi::xml_document doc;
pugi::xml_parse_result res = doc.load_file("test.xml");
printf("%s\n", res.description());
}
And this build step:
c++ test.cpp -I/opt/homebrew/include -lpugixml -L/opt/homebrew/lib
yep, custom findpugixml causes that problem, removed it and reinstalled thru homebrew, appears to go thru without any crashes, thanks
I get segfault pointing to
pugi::xml_document::_destroy
on macbook 14 m1 pro. Pugixml installed via homebrew. Macos ventura 13.1.Code sample can be found here: https://github.com/otland/forgottenserver/blob/master/src/vocation.cpp#L12