Results 1 to 5 of 5

Thread: OpenGL SDK with CodeWarrior?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Sydney, NSW, Australia
    Posts
    11

    OpenGL SDK with CodeWarrior?

    Hi,

    I've been working with OpenGL on a Mac (using CodeWarrior5) for a while, and want to try some re-compiling on Windows (I only have CodeWarrior). I have downloaded the windows SDK, but for some reason I can't get glu.h to compile. It is looking for "GL/gl.h", and the only include files are "gl.h" & "glu.h". Why is it looking for "GL/gl.h" since you can't have a "/" character in a windows filename?

    Any help would be very helpful...thanks in advance.
    -- Work hard, Rest
    Harder --

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Sydney, NSW, Australia
    Posts
    11

    Re: OpenGL SDK with CodeWarrior?

    Libs are linked, headers are included, but glut.h is having trouble:

    Error : ambiguous access to overloaded function
    glut.h line 486 nit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); }

    I had a look at some of the directives mentioned in GLUT.h to do with library linkage, but somehow i don't think that's the problem.

    Any one know this one?
    -- Work hard, Rest
    Harder --

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Sydney, NSW, Australia
    Posts
    11

    Re: OpenGL SDK with CodeWarrior?

    heh...my appologies for the stupid question regarding the '/' character. I'm still a C++ newbie, and have just learned that it is used like a DOS filename separator. Doh.

    Anyway, the other problems are still there.
    -- Work hard, Rest
    Harder --

  4. #4
    Member Contributor
    Join Date
    Dec 2000
    Location
    Halifax, Nova Scotia, Canada
    Posts
    86

    Re: OpenGL SDK with CodeWarrior?

    Haven't used glut before, so if your problem is there, I can't help. I use CW5 all the time and have some C++/GL sample code on my we page. www.cs.dal.ca/~macinnwj
    Code warrior project files and all. Take a look at the project settings - I'm guessing it's something like an access path missing.
    Joe

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: OpenGL SDK with CodeWarrior?

    Yes, it is a file directory path.
    #include <GL\glut.h>

    example: C:\msdev\include\GL\glut.h

    I am not quite sure what that error is, but sounds like a C++ error cuased by the glut.h.

    I program in C, not that up on C++. I am sure someone on here will know the cause.

    Originally posted by dragonworx:
    Libs are linked, headers are included, but glut.h is having trouble:

    Error : ambiguous access to overloaded function
    glut.h line 486 nit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); }

    I had a look at some of the directives mentioned in GLUT.h to do with library linkage, but somehow i don't think that's the problem.

    Any one know this one?

Similar Threads

  1. openGL in Codewarrior
    By ben_22 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-19-2005, 01:37 AM
  2. OpenGl+CodeWarrior
    By Andrewinator in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-22-2003, 03:09 PM
  3. OpenGL with Codewarrior
    By brtnrdr in forum OpenGL: macOS
    Replies: 1
    Last Post: 07-06-2003, 11:19 PM
  4. OpenGL in Metrowerks CodeWarrior
    By amiller in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-11-2002, 04:42 AM
  5. openGL codewarrior OSX
    By in forum OpenGL: macOS
    Replies: 1
    Last Post: 03-25-2002, 05:01 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