LNK 2001 problems with VC++

Hello,

I’m new to OpenGL. I’ve tried running a simple OpenGL program in VC++, but it’s giving me the LNK2001 problem. I’ve included the opengl32.lib glu32.lib glut32.lib library files in the project’s link path. I also have the opengl32.dll, glu32.dll, glu.dll, and glut32.dll in my C:\windows\System32 directory. I’m using Windows XP. I’ve also included all the appropriate header files. Here’s the error message I get:

Linking…
demo.obj : error LNK2001: unresolved external symbol “public: void __thiscall GLUI_Translation::set_y(float)” (?set_y@GLUI_Translation@@QAEXM@Z)
Debug/VC_demo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

VC_demo.exe - 2 error(s), 0 warning(s)


And here’s the program I’m running:

GLUI_Translation *xy_trans;

int main(int argc, char** argv) {

xy_trans->set_y(2.3);

int a;
cin >> a;

return 0
}

Any help would be greatly appreciated. Please keep in mind that I’m new to both VC++ and openGL so please give as much details as possible in your responses.

Thanks,

NM

Your sample code uses GLUI. Download and link.

Originally posted by roffe:
Your sample code uses GLUI. Download and link.
Thank you very much! I got it working :smiley:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.