Results 1 to 5 of 5

Thread: Compiler Problems

  1. #1

    Compiler Problems

    Hi! I'm very new to Open GL, and happy and willing to learn.. I've downloaded some code samples and worked through some tutorials, but I can't get my programs to compile!! Everytime I try, my vc6 compiler returns 3 errors in the gl.h header. I'm very confused since obviously I haven't modified gl.h in any way... These are the errors I get:

    c:\...\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'

    c:\...\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers

    c:\...\gl\gl.h(1152) : fatal error C1004: unexpected end of file found

    I understand the end of file thing, but the first confuse me... What am I doing wrong?

    On a side note: I also have a problem getting my system to recognize glut32.dll:

    cannot open file "glut32.dll"

    Please help!!

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2004

    Re: Compiler Problems

    Do you have the file glut32.dll in your sistem?
    you must include in your file .cpp:
    #include <windows.h>
    I'm Italian

  3. #3

    Re: Compiler Problems

    Great! Thanks worked great.... almost... Man I am so confused... now I've got 17 unresolved symbols related to open GL the error occurs while linking with main.obj ... of course main.cpp is my source file...

    And yes i do have glut.dll in the windows system directory. Thanks again! Can you help with the 17 unresolveds?

  4. #4
    Senior Member Regular Contributor
    Join Date
    Aug 2004
    Angers, France

    Re: Compiler Problems

    Can you tell us what are these 17 unresolved symbols please ?
    The .Product will make you .Believe

  5. #5

    Re: Compiler Problems

    ...So, as I said, I'm very new to this whole thing... So feel free to laugh when I say I figured out the problem.... I was trying to do Open GL in Win 32 Console application. thus the 17 unresolved externals... Thanks for your help tho! I'll be checking in regularly. Great forum, great help. Bfn!

Similar Threads

  1. GLUT Problems with Watcom Compiler
    By egrath in forum OpenGL: General
    Replies: 0
    Last Post: 07-20-2004, 06:06 AM
  2. Compiler Problems
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-16-2003, 09:46 AM
  3. WIERD VC6 compiler problems!
    By Rob123 in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 02-07-2002, 12:48 AM
  4. I Need some help with my compiler
    By TheMad1 in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 07-23-2001, 05:50 AM
  5. help with my compiler
    By TheMad1 in forum OpenGL: User Software
    Replies: 0
    Last Post: 07-21-2001, 02:57 PM

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