You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i tried to cross compile nelua code from my linux machine to windows using zig cc and mingw
using both these commands
nelua test.nelua --cc="zig cc -target x86-windows"
nelua test.nelua --cc="x86_64-w64-mingw32-gcc"
for this code:
##pragma{nogc=true}
##[[-- Compile GLAD--------------------------------------------------cinclude "glad/glad.h"cfile "glad/src/glad.c"cincdir "glad/include"-- generate bindings for gladlocal nldecl = require 'nelua.plugins.nldecl'if not fs.isfile('glad/init.nelua') then nldecl.generate_bindings_file{ include_dirs = { 'glad/include' }, output_file = 'glad/init.nelua', parse_includes = {'glad/glad.h'}, }end--------------------------------------------------]]-- Include GLADrequire"glad"
give the same error for the generated glad bindings:
test.nelua:1:1: from: AST node Block
## pragma{nogc=true}
^~~~~~~~~~~~~~~~~~~~
init.nelua:1:1: from: AST node Block
global gladGLversionStruct: type <cimport,nodecl,ctypedef'gladGLversionStruct'> = @record{
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
init.nelua:7541:8: error: in variable 'INT_FAST16_MAX' declaration: constant value `9223372036854775807` for type `clong` is out of range, the minimum is `-2147483648` and maximum is `2147483647`
global INT_FAST16_MAX: clong <comptime> = 9223372036854775807
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a workaround for this is manually compiling the generated c code from nelua using the appropriate c compiler
i tried to cross compile nelua code from my linux machine to windows using
zig cc
andmingw
using both these commands
for this code:
give the same error for the generated glad bindings:
a workaround for this is manually compiling the generated c code from nelua using the appropriate c compiler
nelua version:
my environment
The text was updated successfully, but these errors were encountered: