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

Error: static assertion failed #22

Open
rubgithub opened this issue Aug 15, 2022 · 1 comment
Open

Error: static assertion failed #22

rubgithub opened this issue Aug 15, 2022 · 1 comment

Comments

@rubgithub
Copy link

rubgithub commented Aug 15, 2022

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]

@Clonkk
Copy link
Owner

Clonkk commented Aug 16, 2022

Hello,

So for starter you need to use cpp backend of Nim compiler so the compiler command should be :

nim cpp ...

I also haven't tested this package on Windows as I do not own a Windows machine at the moment.

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

No branches or pull requests

2 participants