PDA

View Full Version : Debug vs. Release Builds



ribblem
01-31-2001, 05:40 PM
Building my openGL app works fine in Debug mode, but I get tons of linking errors relating to openGL when I switch over to release build using Visual C++ 6. Do I need some special release build .lib files or something?

How do I fix the problem? Below is an example of the error I get when building in release mode.

Lrender.obj : error LNK2001: unresolved external symbol __imp__glPopMatrix@0

Warrior
01-31-2001, 06:59 PM
nah there is no difference and you dont need any special .libs.
make sure your linking to opengl32.lib and glu32.lib correctly in the MSVC link settings. if this doesnt work make sure you have these .libs in your libs folder which found under the main directory for MSVC
hope that helps

Nil_z
01-31-2001, 10:08 PM
You need to set the lib files in both debug and release link setting. I often forget to set the release link setting too, that will give you a link error when buliding the release version.

ribblem
02-01-2001, 07:19 AM
This I did not know. Thanks guys.