1
General / Re: not linking to OpenGL library
« on: October 26, 2014, 01:08:27 am »
Hello friendly developers.
I ran across this problem as well, using TDM's awesome MinGW toolset and codeblocks. what worked for me was entering the following into my project build option's linker settings at the TOP of the linking chain:
opengl32
glu32
gdi32
the OP clued me in on this by checking the codeblock's OPENGL project template, which I discovered linked to these files. You'll notice my suggestion does not link directly to the windows dll files, but links mysteriously to something through magic I guess.
Happy coding.
I ran across this problem as well, using TDM's awesome MinGW toolset and codeblocks. what worked for me was entering the following into my project build option's linker settings at the TOP of the linking chain:
opengl32
glu32
gdi32
the OP clued me in on this by checking the codeblock's OPENGL project template, which I discovered linked to these files. You'll notice my suggestion does not link directly to the windows dll files, but links mysteriously to something through magic I guess.
Happy coding.