SpockBotMC / cpp-nbt

C++23 NBT serializer
zlib License
41 stars 4 forks source link

it doesnt work... compiler errors out #4

Closed AggamR closed 3 years ago

AggamR commented 3 years ago

Hello! I'm tryna use your header file for a project, and the compiler spits 1000000 errors at me. I have simply used #include "nbt.hpp" in my code to check if it work.

nickelpro commented 3 years ago

Hey, what compiler are you using and what options are you passing it?

test1230-lab commented 3 years ago

https://pastebin.com/kD4FZYwY msvc debug x86

test1230-lab commented 3 years ago

https://i.imgur.com/aMzVR1i.png with latest cpp standard

nickelpro commented 3 years ago

https://pastebin.com/kD4FZYwY msvc debug x86

Hi! As it says at the top of the ReadMe, this only compiles with GCC right now. MSVC doesn't support C++20 abbreviated function template syntax in any official release yet.

test1230-lab commented 3 years ago

Ok sorry, I must have missed it

On Mon, Feb 8, 2021 at 7:16 PM Vito Gamberini notifications@github.com wrote:

https://pastebin.com/kD4FZYwY msvc debug x86

Hi! As it says at the top of the ReadMe, this only compiles with GCC right now. MSVC doesn't support C++20 abbreviated function template syntax in any official release yet.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SpockBotMC/cpp-nbt/issues/4#issuecomment-775553965, or unsubscribe https://github.com/notifications/unsubscribe-auth/APLSDRECFV3ALIJ533MQFMLS6B5EFANCNFSM4WIXMSSA .

nickelpro commented 3 years ago

This should now work with Visual Studio 16.9, which is still in pre-release but all the code compiles on Godbolt.