-
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
hello_triangle.nim
does't compile due to incorrect Use / UseProgram procedure name
#2
Comments
Thanks, I probably changed the easygl wrapper and forget to go update hello_triangle, I'll fix it up tonight. |
fixed |
@jackmott Not sure if I mentioned this to you already, but it would be great if you followed the Nim code conventions. i.e. don't name your templates/procs with a capital letter at the start. |
Ok I can fix that, but just noticed that nimble can no longer build because glm now requires nim 17.3 which I do not have, and I can't figure out how to request an older version. requires "glm 0.2.0" doesn't seem to work. |
You can try |
that did it! |
@dom96 what is the best way to be able to compile all of the src files in the examples subdir at once? is there a way to set that up in the nimble file? |
not currently. I mean you can write a task that does it, but Nimble doesn't have any default functionality for that. |
allright, lowerecased it. |
I tried to compile the
hello_triangle.nim
example but I couldn't compile it due to this line.The
UseProgram
wrapper procedure is actually just calledUse
(see here)I would rename
Use
to beUseProgram
but you could also change the procedure inhello_triangle.nim
to beUse
. I didn't a pull request because I'm not sure which you would prefer.The text was updated successfully, but these errors were encountered: