-
Notifications
You must be signed in to change notification settings - Fork 5
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
build failure #38
Comments
Hey @Ilir-Liburn! Interesting one What happens if you make a haxe file with just // Main.hx
function main() trace("hello world!"); And compile it with hxcpp like
Do you get the same errors? Those errors are about CPU registers so maybe there's something related to the CPU architecture to resolve |
Hello, here is the result Compiling group: runtime
C:\HaxeToolkit\haxe\lib\haxe-c-bridge\0,7,0\test\unit\bin>"C:\HaxeToolkit\haxe\lib\haxe-c-bridge\0,7,0\test\unit\bin\Main.exe" I thought problem is in cl, e.g. I'm using 32 bit version (you can see that from the C:\Program Files (x86) path), but it is working just fine. |
Ahh, that could be related: try removing (The errors about "Rbx" and so on refers x64 CPU registers, so it seems the compiler is compiling in 32-bit mode whereas hxcpp was expecting 64) It would be best to keep |
Hello, yes, that solved the issue, great, thanks. Now I need to find out how mapping works, e.g. if int,float,double are directly interchangeable, what about Dynamic, is Vector directly mapped to C array, etc. |
Currently it supports C primitives, C callbacks and strings See the test for a complete view of features For advanced things like objects you could use a C struct extern https://github.com/haxiomic/haxe-c-bridge/blob/main/test/unit/src/MessagePayload.h Lots of good discussion about handling arrays here Good luck! |
OK, thanks. I have one year (more or less) to do so, there is no rush. |
Hello,
run.win from test/unit is giving me error on hxcpp 4.2.1. What I'm doing wrong?
Error: GcRegCapture.cpp
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(53): error C2039: 'Rbx': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(54): error C2039: 'Rbp': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(55): error C2039: 'Rdi': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(56): error C2039: 'R12': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(57): error C2039: 'R13': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(58): error C2039: 'R14': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(59): error C2039: 'R15': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(60): error C2039: 'Xmm0': is not a member of '_CONTEXT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\winnt.h(7243): note: see declaration of '_CONTEXT'
C:/HaxeToolkit/haxe/lib/haxe-c-bridge/0,7,0/test/unit/.haxelib/hxcpp/4,2,1/src/hx/gc/GcRegCapture.cpp(60): error C2660: 'memcpy': function does not take 2 arguments
The text was updated successfully, but these errors were encountered: