Hi, I am trying to transplant a C++ project using opengl 1.2 for Mac to windows. It works fine on Mac, but I had lots of linking issues under windows.
What I did:
-downloaded the glew.zip and installed it
-configured VC2005. Basically, just added glew32.lib into additional libraries. oh, and put GLEW_STATIC/DEBUG in c/c+±>preprocessor.(both tried, neither worked)
-changed the source code so that only import glew.h and glut.h.
What I got:
Looks like it compiled, but I got a bunch of linking errors like below, which I cannot google the solution:
Error 30 error LNK2001: unresolved external symbol "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl operator>>(class std::basic_istream<char,struct std::char_traits<char> > &,class vector &)" (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAVvector@@@Z) arcballWindow.obj
Error 31 error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class vector const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVvector@@@Z) arcballWindow.obj
Error 32 error LNK2001: unresolved external symbol "class vector __cdecl operator*(float,class vector const &)" (??D@YA?AVvector@@MABV0@@Z) arcballWindow.obj
Error 33 error LNK2001: unresolved external symbol ___glewTexImage3D texture3d.obj
Error 34 error LNK2001: unresolved external symbol "public: class vector __thiscall vector::perp2(void)" (?perp2@vector@@QAE?AV1@XZ) volume.obj
Error 35 error LNK2001: unresolved external symbol "public: class vector __thiscall vector::perp1(void)" (?perp1@vector@@QAE?AV1@XZ) volume.obj
Error 36 error LNK2001: unresolved external symbol ___glewActiveTexture volume.obj
Error 37 fatal error LNK1120: 7 unresolved externals F:\workspace\My Received Files\queens\cisc861-advancegraphic\project\a4-texmap\a4\Release\a4.exe
Can anyone help me? Thanks in advance!