
Any help is greatly appreciated.I am having trouble installing gtk to start building GUIs in C++ on Code::Blocks.

I toiled for hours on Google trying to figure out what I’m doing wrong and none of the advice / suggestions I have ran across worked. So regardless of whether I use the 32-bit or 64-bit binaries, I am completely stuck. I downloaded 64-bit MinGW expecting that the problem would be fixed since I’m now using a 64-bit compiler, but I get the exact same error. After linking those, it gives an entirely different error: “undefined reference to glfwInit”… despite the fact that Code Blocks can find where it is located just fine. I also tried downloading the 64-bit GLFW binaries just to see what would happen. But now I go to set up a very simple program: #include Īnd it spits out this: ||= Build: Debug in zztest3 (compiler: GNU GCC Compiler) =|Ĭ:\Users\Patrick\Desktop\PersonalProjects\glfw-3.3.1.bin.WIN32\lib-mingw\libglfw3.a(win32_monitor.c.obj):win32_monitor.c|| undefined reference to undefined reference to undefined reference to undefined reference to undefined reference to undefined reference to undefined reference to undefined reference to undefined reference to more undefined references to follow|Ĭ:\Users\Patrick\Desktop\PersonalProjects\glfw-3.3.1.bin.WIN32\lib-mingw\libglfw3.a(win32_monitor.c.obj):win32_monitor.c|| undefined reference to undefined reference to undefined reference to undefined reference to undefined reference to undefined reference to ld returned 1 exit status| At first, everything seems to work fine - the libraries have clearly been linked correctly since it knows where glfw3.h is and does not report errors in finding it. I set up my paths in the linker to the installation and #included the GLFW/glfw3.h header file. I’m using 32-bit MinGW in Code Blocks on Windows 10 64-bit, so I downloaded the pre-compiled Win32 binaries, ensuring there are no errors caused by using incompatible binaries. It seems every time I try to set one up, even if I follow the instructions to the letter, something goes wrong, I search Google, try a solution that supposedly is supposed to fix it, it doesn’t work, repeat, and eventually give up. I’m a newbie who has had pretty bad experiences with working with external libraries.
