harryprotist
harryprotist

Reputation: 45

freeglut.dll missing

I am reading the OpenGl superbible, and on the very first triangle program it will not run. the program compiles just fine but when i run it, it gave me the error message freeglut.dll is missing from your computer. I downloaded that and put it in the correct directory, and it said that MSVCR71.dll was missing, so i downloaded that and put it in the correct directory and it began to say "The procedure entry point __glutCreateWindowWithExit could not be located in the dynamic link library freeglut.dll." does anyone know what i am doing wrong? i followed all the directions that the book told me.

Upvotes: 4

Views: 23536

Answers (5)

user1043000
user1043000

Reputation:

You could just include the dll wherever your executable is, if you are running this MSVC, then you could for example put the dll inside of your Debug folder. Cleaning the folder would remove everything except that dll so you wouldnt have to worry about constantly recopying it. Furthermore, if you want an alternative solution you could just put the dll inside of you Windows/System32 folder, or in the case of 64 bit architectures you could put it inside of the System/SysWow64 folder

Upvotes: 2

gaurav
gaurav

Reputation: 41

I have had the same problem. Follow these steps:

Assuming that you have performed all steps given in the book.

  1. Download the source code from companion site…I think the folder is SB5 and its 92 MB.
  2. Then build the project named 'freeglut.vcproj'.
  3. It will produce freeglut.dll apart from other files.Put freeglut.dll into c:\windows\syswow64 folder and all is done.

Upvotes: 4

Andrew
Andrew

Reputation: 1784

The freeglut.dll should be placed in the VS project folder. The dll is part of the MSVC package - http://www.transmissionzero.co.uk/software/freeglut-devel/

Upvotes: 0

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385088

You can't just grab random DLLs off the interwebtubes and dump them on your PC. There are versioning issues to consider that you're completely bypassing. It should have been a hint when the MSVC runtime dependency didn't link up.

Install the freeGLUT package properly, in its entirety.

Upvotes: 6

caiotakeshi
caiotakeshi

Reputation: 33

Isn't there any options on the compiler where you can link the libraries? For example, if you use DevC++, you should go to Project -> Project Options -> Parameters, and set the Linkers.

Upvotes: -1

Related Questions