View Full Version : error link 1104

afsar khan
05-29-2015, 04:01 AM
Hi, i am new in opengl programming. i give all reference libraries and link the libraries with my program correctly, but when i run the program it gives me this error (error LNK1104: cannot open file 'freeglutd.lib' D:\Afsar Khan\beaker1\beaker1\LINK beaker1)

05-29-2015, 05:46 AM
that means it hasn't found that lib, you may add this in frond of your program,
#pragma comment(lib,"*:\*\freeglut.lib") where*:\is your lib place disc.

05-31-2015, 07:54 PM
Hey man I don't know if you're still having this error but I was running into it as well and it pretty much ate up a couple hours. Pretty much the "freeglutd.lib" has to do with debugging, hence the "d" on the end, so what I did was go into the: Properties > C/C++ > Preprocessor > Preprocessor Definitions and type NDEBUG. What this does is in the "freeglut_std.h" there is a ifdef for NDEBUG that if it is defined then use "freeglut.lib" otherwise it's going to use the "freeglutd.lib". So by defining it in the Preprocessor Definitions, you are now using the "freeglut.lib". Hopefully this helps you out!

afsar khan
06-03-2015, 11:38 PM
Thanks alot dear it helps and many thanks. i have paper on june 2nd so i am late but thanks alot it simple alots of thanks for me.......