31
Using Code::Blocks / Re: new project wizard fails to locate glfw3.h
« Last post by Vigor on April 20, 2024, 01:36:53 am »Through trial and error, going down many rabbit holes, trying to understand the glfw3 project script I found a solution to the above problem.
I took the glfw3 folder with a copy of the glfw3.h file from my initial download and moved it until I found the right spot for it. It goes in MinGW/Include/, so MINGW/Include/GLFW3/glfw3.h
Before trying this I tried to change the path in the script to where glfw3.h is and has been working for years but it didn't work. In fact it still works for all of my old projects so there must be a better solution.
After completing the wizard I got a new project that doesn't complile. It gives a lot of (i think) linking errors of undefined references such as
C:\Program Files\CodeBlocks\MinGW\lib/libglfw3.a(init.c.obj):init.c:(.text+0xb9): undefined reference to `__mingw_free'
In the above error line, one thing seems peculiar. "MinGW\lib/libglfw3.a" sometimes it is using forward slash and other times it is using backslash. I have seen paths written with forward slashes or with back slashes but I think this is the first time I have ever seen a path written with a combination of forward and back slashes.
libglfw3.a is in the MinGW/LIB/ folder. (i didn't need to move it from where it has been for years)
I read a post on stack exchange which had an almost identical problem where it was determined that the original poster needed to update his GCC compiler. I recently updated mine but I went ahead and updated it again and nothing changed.
Since I have two full installations of codeblocks on my computer, I wanted to try to start projects in both, then edit both scripts and compare them side by side looking for differences. It wouldn't let me open both a once. I can open one, then trying to execute the 2nd brings the window to the other to the front.
Is there a way to have 2 instances of codeblocks running at once? It would often be useful if I could have multiple instances of codeblocks running at once. It would be really great if each instance had a unique thumbnail and didn't stack in the taskbar.
I took the glfw3 folder with a copy of the glfw3.h file from my initial download and moved it until I found the right spot for it. It goes in MinGW/Include/, so MINGW/Include/GLFW3/glfw3.h
Before trying this I tried to change the path in the script to where glfw3.h is and has been working for years but it didn't work. In fact it still works for all of my old projects so there must be a better solution.
After completing the wizard I got a new project that doesn't complile. It gives a lot of (i think) linking errors of undefined references such as
C:\Program Files\CodeBlocks\MinGW\lib/libglfw3.a(init.c.obj):init.c:(.text+0xb9): undefined reference to `__mingw_free'
In the above error line, one thing seems peculiar. "MinGW\lib/libglfw3.a" sometimes it is using forward slash and other times it is using backslash. I have seen paths written with forward slashes or with back slashes but I think this is the first time I have ever seen a path written with a combination of forward and back slashes.
libglfw3.a is in the MinGW/LIB/ folder. (i didn't need to move it from where it has been for years)
I read a post on stack exchange which had an almost identical problem where it was determined that the original poster needed to update his GCC compiler. I recently updated mine but I went ahead and updated it again and nothing changed.
Since I have two full installations of codeblocks on my computer, I wanted to try to start projects in both, then edit both scripts and compare them side by side looking for differences. It wouldn't let me open both a once. I can open one, then trying to execute the 2nd brings the window to the other to the front.
Is there a way to have 2 instances of codeblocks running at once? It would often be useful if I could have multiple instances of codeblocks running at once. It would be really great if each instance had a unique thumbnail and didn't stack in the taskbar.