Skip to content

Compile error MSVC #17

Description

@test1230-lab

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++

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions