Results 1 to 4 of 4

Thread: error link 1104

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2015
    Posts
    4

    error link 1104

    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)

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296
    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.

  3. #3
    Newbie Newbie
    Join Date
    May 2015
    Posts
    1
    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!

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2015
    Posts
    4
    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.......

Similar Threads

  1. link error
    By Savalia in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-26-2009, 02:28 AM
  2. link error!
    By orchis in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 10-15-2004, 07:52 AM
  3. Link Error
    By neru in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-06-2004, 05:22 AM
  4. link error, help
    By lanstar2 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-14-2004, 05:45 PM
  5. A Link error
    By 2 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-26-2001, 09:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean