Results 1 to 6 of 6

Thread: problem w/glaux.h

  1. #1
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Pittsburgh, PA,USA
    Posts
    14

    problem w/glaux.h

    I am having trouble with the include file "glaux.h." I am running windows NT 4, and using Visual C++ 6.0. Everytime I add the statement #include <GL/glaux.h> I get the following errors :


    c:\program files\microsoft visual studio\vc98\include\windef.h(171) : error C2146: syntax error : missing ';' before identifier 'LPARAM'

    c:\program files\microsoft visual studio\vc98\include\windef.h(171) : fatal error C1004: unexpected end of file found

    Error executing cl.exe.


    This is very frusterating because I am trying to load .bmp files using the glaux library. If anyone has any information about how I could fix this problem or where I could find information on how to fix this problem please tell me!!

  2. #2
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Austria
    Posts
    21

    Re: problem w/glaux.h

    In my windef.h there was never defined LONG.
    So it might sound silly but you can try to put
    #typedef long LONG
    over the line with the error.

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    London
    Posts
    503

    Re: problem w/glaux.h

    Maybe a silly question, but you are #including "windows.h" BEFORE "GL/glaux.h", right?

  4. #4
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Pittsburgh, PA,USA
    Posts
    14

    Re: problem w/glaux.h

    I am including <windows.h> but it doesn't matter. Even if I remove <windows.h> the errors are still the same. The line in windef.h that seems to be causing the problem is :

    typedef LONG LPARAM;

    I tried replacing it with what Mexx said, but that increased the number of errors to 49. I am sure that the gl and glut .h files are working fine.

    Your help is greatly appreciated!

  5. #5
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Pittsburgh, PA,USA
    Posts
    14

    Re: problem w/glaux.h

    OK-If I compile just the statement #include <windows.h> or if I compile the statement #include <gl/glaux.h> (or both) I get the same errors that I mentioned above. Maybe I should just try reinstalling microsoft visual c++. Does this sound like an appropriate thing to do? Sorry that this topic is turning into something that isn't directly related to openGL.

  6. #6
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Pittsburgh, PA,USA
    Posts
    14

    Re: problem w/glaux.h

    reinstalling visual c++ solved the prblem..

Similar Threads

  1. problem of compilation with glaux
    By airseb in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 02-06-2005, 06:40 AM
  2. lib GLAUX for red hat 7.3
    By bunny-3110 in forum OpenGL: Linux
    Replies: 2
    Last Post: 03-01-2004, 01:19 AM
  3. Where is glaux.h?
    By ruralmyth in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-19-2004, 09:35 PM
  4. where can i find glaux.lib and glaux for bcb.
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 05-20-2003, 08:35 PM
  5. GLAUX.DLL?
    By smart_idiot in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-13-2000, 07:40 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