Results 1 to 3 of 3

Thread: how to compile ?

  1. #1
    Member Contributor
    Join Date
    Feb 2005

    how to compile ?

    ...i get the open gl library...and i put it in the c:\BC5\INCLUDE\*.H and the c:\BC5\LIB\*.LIB directories, but when i want to compile, there is full of errors....the compiler say 'invalid sintaxis' in the *.h files....what happend ? ? ? what i must to do before ?

    pd: my english excuses, i from South-america

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2002

    Re: how to compile ?

    I'm not sure if this will help you, because it seems like you are using a Borland compiler and I use Visual C++ 6.0, however, I too received similiar errors once in the OpenGL .H files when I forgot to include windows.h in my code (I was trying to compile a simple example from the Red Book).
    Sorry I can't help out more, good luck to you!

    - = TEFLON DRAGON = -
    - = TEFLON DRAGON = -

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Fargo, ND

    Re: how to compile ?

    It does sound like you forgot to #include <windows.h> Also, you have to do that BEFORE #include <GL/gl.h>

    One more thing... where'd you get the headers and libraries from? If you have VC++ libs, you are going to get linker errors next saying invalid library format.

    [This message has been edited by Deiussum (edited 04-29-2002).]
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. won't compile
    By mindspin in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-30-2005, 05:17 PM
  2. can't compile
    By imported_xenon in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 02-21-2004, 02:39 PM
  3. C++ cant compile
    By catalanoli in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-26-2002, 04:54 AM
  4. cant compile
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-24-2001, 01:18 PM
  5. how to compile
    By kan in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-23-2001, 03:08 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