tboox / tbox

🎁 A glib-like multi-platform c library
https://docs.tboox.org
Apache License 2.0
4.84k stars 719 forks source link

启用 openssl 编译错误 #237

Closed star-hengxing closed 11 months ago

star-hengxing commented 12 months ago
add_requires("tbox", {debug = true, configs = {openssl = true}})
src\tbox\network\impl\ssl\openssl.c(110): error C2664: 'int BIO_meth_set_ctrl(BIO_METHOD *,long (__cdecl *)(BIO *,int,long,void *))': cannot convert argument 2 from 'tb_long_t (__cdecl *)(BIO *,tb_int_t,tb_long_t,tb_pointer_t)' to 'long (__cdecl *)(BIO *,int,long,void *)'
src\tbox\network\impl\ssl\openssl.c(110): note: None of the functions with this name in scope match the target type
C:\Users\star\AppData\Local\.xmake\packages\o\openssl\1.1.1-t\9458079689e342b58f2f2e8d4b2fb860\include\openssl/bio.h(786): note: see declaration of 'BIO_meth_set_ctrl'
src\tbox\network\impl\ssl\openssl.c(110): note: while trying to match the argument list '(BIO_METHOD *, overloaded-function)'
src\tbox\network\impl\ssl\openssl.c(341): warning C4244: 'argument': conversion from 'tb_size_t' to 'tb_int_t', possible loss of data
src\tbox\network\impl\ssl\openssl.c(520): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(618): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(668): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(677): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(729): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(738): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
Issues-translate-bot commented 12 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: Enable openssl compilation error

waruqi commented 12 months ago

再试试 dev

Issues-translate-bot commented 12 months ago

Bot detected the issue body's language is not English, translate it automatically.


Try dev again

star-hengxing commented 11 months ago

可能还要改改= =

src\tbox\network\impl\ssl\openssl.c(313): error C2220: the following warning is treated as an error
src\tbox\network\impl\ssl\openssl.c(313): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(480): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(566): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(614): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(622): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(674): warning C4244: 'argument': conversion from 'tb_size_t' to 'int', possible loss of data
src\tbox\network\impl\ssl\openssl.c(683): warning C4244: 'argument': conversion from 'tb_long_t' to 'int', possible loss of data
waruqi commented 11 months ago

再试试

Issues-translate-bot commented 11 months ago

Bot detected the issue body's language is not English, translate it automatically.


try again

star-hengxing commented 11 months ago

可以了

Issues-translate-bot commented 11 months ago

Bot detected the issue body's language is not English, translate it automatically.


That's it