Thread: Probably a stoopid question....

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    10

    Probably a stoopid question....

    I'm not new to programming, but I am new to c++, basically Dev c++ compiler etc....

    I knew lots of C and kicked ass with djgpp but now I am very confused about a few things(mainly lib and .h files)

    OK so I am trying to get into Open gl.

    Anyone who knows about this please tell me if I am doing this right....

    I have a header file glut.h that I place inside dev c++\include\gl dir
    I have a lib file glut32.lib that I place dev c++\lib dir

    I then write a program
    blah blah
    #include <gl\glut.h>
    blah blah
    blah blah

    and lastley I goto the program options, paramters and type
    -lglut32 in the lib options part(I also tried manually selecting the lib)

    I then get an error saying there is a problem with the file included glut.h

    Anyone who can help I will appreciate.
    WOO!

  2. #2
    Registered User
    Join Date
    Oct 2003
    Posts
    24
    try

    #include "glut.h"

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    10
    putting the header in quotes includes the file if it is in the directory of the source, its not so <gl\glut.h> is what I want, also I tried it just for kicks and copied glut.h to the dir, didn't work, knew it wouldn't.
    WOO!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM