Open Harold-Glitch opened 2 months ago
At present, I use Visual Studio 2022 or CLION + VCPKG + VS 2022 Toolchain under Windows. Neither can it be compiled normally. Can it provide help?
My repo compiles fine, but I still have problem with gnutls on tools/dhtchat https://github.com/Harold-Glitch/opendht/tree/master
My repo compiles fine, but I still have problem with gnutls on tools/dhtchat https://github.com/Harold-Glitch/opendht/tree/master
Using the version you provided, after adapting to VCPKG, it can be compiled correctly. dhtchat also encountered the same problem!
Thanks!
set (OPENDHT_C ON)
after opening the settings, an error message appears:
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(36): error C2061: syntax error: identifier"atomic_bool"
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(36): error C2059: syntax error:";"
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(37): error C2061: syntax error: identifier"atomic_char"
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(37): error C2059: syntax error:";"
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(38): error C2061: syntax error: identifier"atomic_schar"
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(38): error C2059: syntax error:";"
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(39): error C2061: syntax error: identifier"atomic_uchar"
\2022\Professional\VC\Tools\MSVC\14.36.32532\include\vcruntime_c11_stdatomic.h(39): error C2059: syntax error:";"
...
Unable to run dhtchat after successful compilation and link on Windows.
Caused in tools_common.h by
dht::crypto::generateEcIdentity("DHT Node CA")
Exception raised in crypto.cpp in: void Certificate::unpack(const uint8_t* dat, size_t dat_size)
Access violation at: gnutls_free(cert_list);
It runs fine on Linux, but did someone run dhtchat with success in version V3.2.0 on Windows ?