Visual Studio 2008 i OpenGL

Visual Studio 2008 i OpenGL

offline
  • EmirS 
  • Novi MyCity građanin
  • Pridružio: 11 Feb 2008
  • Poruke: 2

Poštovani,

najljubaznije Vas molim za pomoć. Pokušavam pokrenuti OpenGL program u Visual C++ 2008 i nikako mi ne ide. Podesio sam Environment Variables, uključio potrebne .lib i .h datoteke preko menija Tools->Options->Projects and Solutions->..., ali opet ne ide.

Inače, operativni sistem mi je Windows Vista Home Basic.

Šta da radim, please help...

Pozdrav



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Srđan Tot
  • Am I evil? I am man, yes I am.
  • Pridružio: 12 Jul 2005
  • Poruke: 2483
  • Gde živiš: Ljubljana

Kad bi rekao koju gresku dobijas, mozda bi mogli da ti pomognemo... ovako mozemo samo da nagadjamo.



offline
  • EmirS 
  • Novi MyCity građanin
  • Pridružio: 11 Feb 2008
  • Poruke: 2

Proces kompajliranja prođe bez grešaka, problem se javlja prilikom linkanja.

Inače, koristim v5.0 iz Microsoft SDKs.

Evo i grešaka:

1>------ Build started: Project: TRANSF, Configuration: Release Win32 ------
1>Linking...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1>main.obj : error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "void __cdecl initRendering(void)" (?initRendering@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function "void __cdecl handleResize(int,int)" (?handleResize@@YAXHH@Z)
1>main.obj : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function "void __cdecl handleResize(int,int)" (?handleResize@@YAXHH@Z)
1>main.obj : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function "void __cdecl handleResize(int,int)" (?handleResize@@YAXHH@Z)
1>main.obj : error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function "void __cdecl handleResize(int,int)" (?handleResize@@YAXHH@Z)
1>main.obj : error LNK2019: unresolved external symbol _glutSwapBuffers@0 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glScalef@12 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glPopMatrix@0 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glVertex3f@12 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glBegin@4 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glPushMatrix@0 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glTranslatef@12 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glRotatef@16 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "void __cdecl drawScene(void)" (?drawScene@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _glutTimerFunc@12 referenced in function "void __cdecl update(int)" (?update@@YAXH@Z)
1>main.obj : error LNK2019: unresolved external symbol _glutPostRedisplay@0 referenced in function "void __cdecl update(int)" (?update@@YAXH@Z)
1>main.obj : error LNK2019: unresolved external symbol _glutMainLoop@0 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glutReshapeFunc@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glutKeyboardFunc@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glutDisplayFunc@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glutCreateWindow@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glutInitWindowSize@8 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glutInitDisplayMode@4 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _glutInit@8 referenced in function _main
1>D:\transform\Release\TRANSF.exe : fatal error LNK1120: 25 unresolved externals
1>Build log was saved at "file://d:\transform\Release\BuildLog.htm"
1>TRANSF - 26 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Unaprijed hvala

offline
  • Srđan Tot
  • Am I evil? I am man, yes I am.
  • Pridružio: 12 Jul 2005
  • Poruke: 2483
  • Gde živiš: Ljubljana

Ok... kompilacija prodje savrseno, ali ne linkujes sve potrebne biblioteke.
Biblioteke koje su ti potrebne su opengl32.lib, glu32.lib i glut32.lib

Ko je trenutno na forumu
 

Ukupno su 841 korisnika na forumu :: 40 registrovanih, 8 sakrivenih i 793 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: _Rade, babaroga, bojank, bokisha253, brundo65, cvrle312, Darko8, dejanru, draggan, Georgius, goxin, jeen yuhs, kikisp, Koridor, kvcali, Leonov, loon123, Lord Nem, madza, mačković, mercedesamg, mgolub, mikki jons, mikrimaus, milenko crazy north, miodrag, Misirac, mkukoleca, moldway, Nemanja.M, Neutral-M, novator, Stanlio, vaso1, Vlad000, Vlajman1957, vrag81, yoshich, zastavnik, zodiac94