Menu

Glu & Glut

2002-08-21
2012-09-26
  • Nobody/Anonymous

    I have double checked that i have Glu.h & Glut.h But it wont let me add them to my projects...why?

    It give me LINKER ERRORS

    Any reason why?

     
    • Nobody/Anonymous

      You must know that header files are not added to projects, they are only #included

       
    • Nobody/Anonymous

      When you include a header in your workspace, you simply add it to a list of header files located on the browser.  This is used to make browsing through header files, source files, definition files, etc. a lot easier.  Note that when you include them into a workspace, you do NOT include them in your source, to do this, add the following line:

      //for a library in the include folder:
      #include <libname> //or
      #include <folder/libname> //or
      #include <libname.h>
      //for a local library
      #include "libname.h"
      //for a library in a foreign folder
      #include "C:\folder\libname.h"

      once you do this, you must include the glu, and glut libraries, to do this goto the build options menu and select the library files in the browse for files section, then click add.

      It should compile now :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.