I am working on Glut Project in Code::Blocks. I have Freeglut.dll in windows folder in C Drive. I have also copied this file in sysWOW64 (as i am using windows 10). But it still gives the error mentioned in the pictures bellow:
Asked
Active
Viewed 1,406 times
-2
-
1**_Never(!)_** copy any files into the Windows directories. Only pain and despair await you down that path. If your program requires particular nonstandard DLLs, copy them into the directory your program's `.EXE` resides in. – datenwolf Aug 11 '16 at 08:45
-
It does not work ! – Hyder Abbas Aug 11 '16 at 10:09
-
1BDL gave you the answer to your problem. I just pointed out that you should *never* place stuff in the Windows directories; that doesn't solve your problem at hand, but *avoids* further problems in the future. – datenwolf Aug 11 '16 at 11:27
1 Answers
2
The linker does not find Freeglut.lib
. Most probably you missed to add the path to the lib directory to the linker options. I don't know how to do this in Code::Blocks, but in general you have to add these additional library directories using the -L<DIR>
switch for the linker.

BDL
- 21,052
- 22
- 49
- 55