Jump to content

  • Log In with Google      Sign In   
  • Create Account

ERRORS ARE DRIVING ME NUTS


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 dAbIgAzNdUdE   Members   -  Reputation: 122

Like
Likes
Like

Posted 19 August 2001 - 05:47 PM

hey, eveytime i try to build an opengl program with a spinning triangle on a black background in Visual C++ 5 (sevice pack 3), i get this error message: --------------------Configuration: triangle - Win32 Debug-------------------- Linking... triangle.obj : error LNK2001: unresolved external symbol _gluPerspective@32 triangle.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0 triangle.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4 triangle.obj : error LNK2001: unresolved external symbol __imp__glViewport@16 triangle.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 triangle.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 triangle.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4 triangle.obj : error LNK2001: unresolved external symbol __imp__glEnd@0 triangle.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12 triangle.obj : error LNK2001: unresolved external symbol __imp__glBegin@4 triangle.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12 triangle.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16 triangle.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12 triangle.obj : error LNK2001: unresolved external symbol __imp__glClear@4 LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/triangle.exe : fatal error LNK1120: 15 unresolved externals Error executing link.exe. triangle.exe - 16 error(s), 0 warning(s) ******Please Help!******

Sponsor:

#2 Martee   Members   -  Reputation: 476

Like
Likes
Like

Posted 19 August 2001 - 05:54 PM

You need to format your hard drive and reinstall Windows.

Wait a minute, no you don''t. What you actually need to do is make sure that you link to opengl32.lib and glu32.lib.

#3 dAbIgAzNdUdE   Members   -  Reputation: 122

Like
Likes
Like

Posted 19 August 2001 - 06:00 PM

How do you do that?

#4 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 19 August 2001 - 06:40 PM

RTFM

#5 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 19 August 2001 - 07:00 PM

With VC++ open, go to tools->options, and then hit the directories tab. Here you specify where the linker looks for certain functions and whatnot. Add the directories with opengl32.lib and glu32.lib, should patch you up fine.

#6 xxenon   Members   -  Reputation: 122

Like
Likes
Like

Posted 19 August 2001 - 07:57 PM

In MSVC++, select Project -> Add to project -> Files.

Then select glu32.lib and opengl32.lib from the VC98/lib of your Visual Studio installation.



GAMESDEV.CH

Source d''informations et plate-forme de discussions pour le développement de jeux vidéo

#7 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 20 August 2001 - 12:03 AM

#pragma comment(linker,"/entry:\"mainCRTStartup\"")




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS