QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Qbee on December 11, 2019, 06:26:46 pm
-
Hello,
after trying a lot of codes from this forum and others I remarked that some will not run because they have problems to load resources (so I couldn't run Qwerkey's "Pi-in-the-sky" https://www.qb64.org/forum/index.php?topic=1969.0).
Actually I tried to start Ashish's OpenGL-3D-collection from github (https://github.com/AshishKingdom/QB64_OpenGL_Demos) and got an error after starting the first program. I changed the responsible relative path to an absolute path according to my installation. That solved the problem.
Now my question is, how QB64 resolves paths in programs ?
-
QB64 doesn't resolve paths... QB64 programmers do.
Pete
When I die, I will be programmed into SCREEN 0. That way, I can still talk out of my ascii.
-
In the Run menu, check the option that indicates the next compilation will output the executable to the same folder as the source file you’re compiling.
[ This attachment cannot be displayed inline in 'Print Page' view ]
-
Paths are relative to where the EXE is.
Go into the IDE and click the option to “Save EXE with Source”, and usually most of your path problems will disappear. ;)
-
Thanks for the quick responses.
-
(so I couldn't run Qwerkey's "Pi-in-the-sky" https://www.qb64.org/forum/index.php?topic=1969.0).
In my defence, I even gave instructions on the "Save EXE to Source Folder" requirement.
-
Can someone remind me why this (Save EXE to SourceFolder) isn't the default option?
-
Because it has been added to the IDE long after QB64 was released. Default behavior has always been keeping binaries in QB64’s folder.
-
OK thanks Fellippe