mas-bandwidth / yojimbo

A network library for client/server games written in C++
BSD 3-Clause "New" or "Revised" License
2.48k stars 244 forks source link

[Error] Building yojimbo gmake2 mingw #199

Closed UsmanTariq2 closed 5 months ago

UsmanTariq2 commented 5 months ago

`"sodium_randombytes.c" "sodium_randombytes_salsa20_random.c" sodium/sodium_randombytes_salsa20_random.c:120:8: error: unknown attribute 'thread' ignored [-Werror,-Wunknown-attributes] 120 | static TLS Salsa20Random stream; | ^~~ sodium/sodium_randombytes_salsa20_random.c:94:26: note: expanded from macro 'TLS' 94 | # define TLS __declspec(thread) | ^~

:389:38: note: expanded from macro '__declspec' 389 | #define __declspec(a) __attribute__((a))` I get the above error when building yojimbo using _mingw32-make_ Compiler Version : MINGW G++ 14 Issue present on master and latest stable release
gafferongames commented 5 months ago

Mingw is not supported. If you would like to submit a patch, I'm happy to review it.

gafferongames commented 5 months ago

ps. You could also get a more recent version of libsodium official release and build and link against that and you'll probably have more luck.

UsmanTariq2 commented 5 months ago

Got it. MINGW not supported

UsmanTariq2 commented 5 months ago

Also, is 64 supported , i see that for VS it is coded to x86. Is x64 easy to switch to after some minor modifications?

gafferongames commented 5 months ago

64bit is supported

UsmanTariq2 commented 5 months ago

Can u briefly guide how to set it up for 64 bit? I cannot find a resource.