Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error MSVC #17

Open
test1230-lab opened this issue Feb 6, 2021 · 1 comment · May be fixed by #18
Open

Compile error MSVC #17

test1230-lab opened this issue Feb 6, 2021 · 1 comment · May be fixed by #18

Comments

@test1230-lab
Copy link

Severity Code Description Project File Line Suppression State
Error C2440 '=': cannot convert from 'uint8_t' to 'nbt_tag_type_t' schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 240
Error C2440 '=': cannot convert from 'uint8_t' to 'nbt_tag_type_t' schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 304
Error C2440 '=': cannot convert from 'void *' to 'nbt_tag_t **' schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 918
Error C2440 '=': cannot convert from 'void *' to 'nbt_tag_t ' schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 928
Message Conversion from 'void
' to pointer to non-'void' requires an explicit cast schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 918
Message Conversion from 'void
' to pointer to non-'void' requires an explicit cast schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 928
Message Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 240
Message Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) schematic C:\Users\wow\source\repos\schematic\schematic\nbt.h 304

i just included the header as such:
#include <stdio.h>
#define NBT_IMPLEMENTATION
#include "nbt.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"

MSVC C++

@llenck llenck linked a pull request May 3, 2021 that will close this issue
@psycho-history
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants