C++ Error when trying to make a SphereMap with OpenGL

This is a discussion on C++ Error when trying to make a SphereMap with OpenGL within the C++ Programming forums, part of the General Programming Boards category; Hello, I'm trying to make a Sphere Map, and I get an error that says: Redeclaration of C++ built in ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    2

    C++ Error when trying to make a SphereMap with OpenGL

    Hello, I'm trying to make a Sphere Map, and I get an error that says:
    Redeclaration of C++ built in type 'short'

    That error comes from a .h file that i link to, which is included with OpenGL 3.7
    Any ideas?

  2. #2
    C++11 User Tux0r's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    135
    Quote Originally Posted by Frijoles117 View Post
    which is included with OpenGL 3.7


    Anyway get an updated header
    http://www.opengl.org/registry/api/glxext.h
    or
    http://www.opengl.org/registry/api/gl3.h

    depending on what you are using.

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    2
    I have the updated version of those headers, it's the glsmap.h header that's giving me problems. I've tried to find a new version, but they all have the same line that gives me problems.
    the line is:
    typedef unsigned short wchar_t

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 02-12-2006, 08:42 PM
  2. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  3. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 11:53 AM
  4. SDL_ttf and OpenGL
    By sand_man in forum Game Programming
    Replies: 2
    Last Post: 12-01-2004, 06:06 PM
  5. OpenGL question
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 09-10-2001, 01:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21