Results 1 to 2 of 2

Thread: Linking Error

  1. #1

    Linking Error

    Ok I just started cleaning my pong game code up and I decided I wanted to make it object oriented. So I through a bunch of things into classes like textures. I wanted to be able to make a texture object and destroy it when I wanted. This is beside the point. When making the definition for the members of this class I needed the GL headers. I had to use these headers actually in a bunch of headers, and when I do this I get this error:

    c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
    c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
    Error executing cl.exe.

    I am sorry for the horrible wording of this message. It is 1 am and I have a bad head ache. If you need more code just ask. Thank you for your concern.

  2. #2

    Re: Linking Error

    LOL 10 seconds later I think I found the problem. I need to includ <windos.h> first in all of them.

Similar Threads

  1. Linking...Error
    By TheClick in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-07-2004, 12:34 AM
  2. Linking Error???
    By lost- in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-23-2003, 09:07 AM
  3. Linking error
    By yang22 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-15-2002, 12:33 PM
  4. linking error!!!
    By joey in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-15-2001, 08:57 PM
  5. linking error
    By imported_Markus_ in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-26-2000, 04:18 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