Skip to content

Error: static assertion failed #22

@rubgithub

Description

@rubgithub

Hi there, I'm getting multiples errors while compiling a dll

my ffi.nim files only contains an import:

import cppstl/std_string

compile:

nim c --cpu:i386 -d:release --app:lib --nomain ffi.nim

D:\nim\lib/nimbase.h:550:30: error: static assertion failed
550 | NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "");
D:\nim\lib/nimbase.h:278:50: note: in definition of macro 'NIM_STATIC_ASSERT'
278 | #define NIM_STATIC_ASSERT(x, msg) static_assert((x), msg)
|

Nim Compiler Version 1.6.6 [Windows: i386]

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