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
{{ message }}
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
import os
import nimraylib_now/mangled/raylib # Vector2import nimraylib_now/mangled/raymath # Vector2import moduler
initWindow(20, 20, "thread bug")
var threadPhysic: Thread[int]
createThread(threadPhysic, threadSystemPhysic, 10)
whiletrue:
var vv =Vector2(x: 0.1, y: 0.2) +0.1# <- this uses raymath.h ; and let nim include it in the c filesleep(500)
closeWindow()
@enthus1ast I invited you as a collaborator to the project. So here you would want to read a bit about HACKING. I made a PR #51 that does name mangling for more names, you would want to get this branch and add more names as needed, then run nimble convert to regenerate all the files and try to compile your example again. Eventually all conflicting symbols will be resolved.
You would also want to run nimble develop in the project root to avoid reinstalling this package everytime.
Let me know if you need any help with that.
enthus1ast
added a commit
to enthus1ast/nimraylib_now
that referenced
this issue
Dec 15, 2021
Another flavour of:
#49
#12
main.nim
moduler.nim
compile with:
nim c --threads:on main.nim
as soon a proc from raymath.h is used in the main.nim
the c includes are in the wrong order (windows.h is moved above the raymath.h include):
The text was updated successfully, but these errors were encountered: