Code::Blocks Forums
User forums => Help => Topic started by: quiznoserf on September 01, 2015, 12:03:39 am
-
I have had to re-install C:B recently due to an unrelated event. After reinstall, I returned to a program that I had written and it compiles without errors or warnings, but when I attempt to run it, I get "The procedure entry point g_bytes_ref could not be located in the dynamic link library libglib-2.0-0.dll" Interestingly, I can run the compiled program outside of C:B. (I am forced to install both C:B and MinGW in non-default locations.) Is there an environment variable that I have overlooked, perhaps?
-
When you run a program from inside cb it modifies the path variable to include all library search path locations.
So if there is a libglib-2.0-0.dll in one of these locations that is incompatible you might have this problem.
Search your disk for libglib-2.0-0.dll and see if the correct version of this dll is used.
-
Thanks for your prompt reply, oBFusCATed. So, for further clarification, exactly which path variable does cb modify and where does it look for 'all library search path locations.' I think that if I understood this better, I could get to the bottom of this more quickly. Thanks.
-
The variable is %PATH%, the location is project -> build options -> search directories -> linker.
It also uses the global compiler search directories. See Settings -> Compiler -> You compiler.
-
Okay. Found it--had an older copy installed in my MinGW installation.