diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-06-04 22:15:10 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-06-04 22:15:10 +0800 |
commit | 7be4892f658d2ac1a63c656bed4cb5628898be98 (patch) | |
tree | 2ee9dd0a8d28d7ea5f95dd9ff20ea3222de7a1a3 /indra/llcommon/tests/test_python_script.py | |
parent | b7c12f52ef1848afec6e31ccea32ca86cd7ceef2 (diff) |
Fix vcpkg Boost JSON linking errors
The error was "definition of dllimport static data member not allowed",
and not "definition of dllimport function not allowed" as mentioned in
commit 2bf9d234aac30ed4a85282730da0ffc83acf9adf description.
Basically there were about 5 offending files, and all had
BOOST_JSON_REQUIRE_CONST_INIT in them.
Not including json/src.hpp (that includes them among others), fixes
those errors, but then there are definitions in them that are actually
used by llsdjson.
After doing so many searches, I came across this:
https://stackoverflow.com/questions/3491990/c-definition-of-dllimport-static-data-member
and just from the first paragraph in the accepted answer, I realised
llsdjson can still have those definitions, just not from the offending
headers, but by simply linking to Boost JSON compiled library instead.
Diffstat (limited to 'indra/llcommon/tests/test_python_script.py')
0 files changed, 0 insertions, 0 deletions