Replies: 3 comments
-
|
try compiling with -g and running it through gdb, a proper backtrace will likely give you some insight |
Beta Was this translation helpful? Give feedback.
-
|
The reason this happens is because It gets called by InitTimer in InitWindow, which then calls glfwGetTime, and then crashes somewhere within, when that syscall gets invoked. The same thing happens with other names - I've seen one other person have a similar strange result with The solution is simple - name your variables better. I'm pretty sure there is nothing raylib can do to avoid this, so I wouldn't call it a raylib bug. I could be mistaken about this, though. See |
Beta Was this translation helpful? Give feedback.
-
|
I think the conflict arises because at the top level, the To avoid conflicts such as that, as well as colliding with system externals that may be linked in/by some silently-used libraries, use either |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey comunity!!!!
So I have been trying to compile my raylib project using cmake because I work together on macOS M1 and windows, and it is kind of working.
BUT after hours of getting a
bus erroron macOS I came into this situation:I create this simple project:
Where the
raylibfolder is simply a clone of theraylibrepo andCMakeLists.txtis:Now here comes the problem.
Using the following
main.cworks just fine:But, as soon as I simply create a GLOBAL VARIABLE called
time(it must be calledtimelower case for the error to occur) this happens:The output is:
[1] 31848 bus error ./rayplotThe rest of the output is the normal output raylib gives.
I have tested it on Windows too and there isn't any problem.
It only happens when compiling from sources, not with the
brewversion.I have tried with some variable names and types but it only happens with
timeand I haven't found anything online.Do you know why this happens? Is this something about raylib or glfw? Is there a way to solve it or is it simply a library bug?
Thank you anyway. <3
Beta Was this translation helpful? Give feedback.
All reactions