Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Multitexture problem!

  1. #1
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    11

    Multitexture problem!

    I think that this message is indicated to this topic, bcse I am beggining!

    Here I am! Trying to compile an example code that come with the "OpenGL Game Programming Book"!

    My problem is a program that uses multitexturing, but it dont´t work.

    This error happen´s when I try to compile:

    c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers


    c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers

    c:\Documents and Settings\multipassex\main.cpp(52): error C2501: 'PFNGLCLIENTACTIVETEXTUREARBPROC' : missing storage-class or type specifiers


    The compiler not recognize the pointer to extended funcions of opengl.

    I am including in my project the headers

    #include <gl/gl.h> // standard OpenGL include
    #include <gl/glu.h> // OpenGL utilties
    #include "glext.h"
    // OpenGL extension

    and the libs:

    opengl32.lib and glu32.lib

    Any idea that what is my problem?

    Thank you!!!

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Multitexture problem!

    Please do not crosspost.

    These are function pinter typedefs declared in glext.h so you can fill them in with wglgetprocaddress and still use them with argument checking.

    I suspect you have an old glext.h file or something is wrong with including it. Are you sure these are the first errors?

    Check the typedefs carefully and your use of these function pointer types.

    You can also use void function pointers and/or your own declaratiosn with casts but that's just an interim suggestion if you're feeling adventurous.

  3. #3
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    11

    Re: Multitexture problem!

    I did two tests. At firs I try to compile my program on Windows XP. And it works.

    But in my machine that runs windows NT. it don´t works..Any idea?

    Here is my code:

    http://www.inf.pucrs.br/lfraga/OpenGl%20Project.zip

    Thank you!

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: Multitexture problem!

    Sometimes, beeing clear allows other not forcing themselves to guess what the problem could be...

    What does not work ?? The compilation ? The linking ? The execution ? Did you install your card drivers ? Did you ensure you have everything intended for things to run ?

  5. #5
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    11

    Re: Multitexture problem!

    If you read the message that I was send before..

    I describe my problem in details:

    The problem happens when I compile the code.

    This error happen´s when I try to compile:

    c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers


    c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers

    c:\Documents and Settings\multipassex\main.cpp(52): error C2501: 'PFNGLCLIENTACTIVETEXTUREARBPROC' : missing storage-class or type specifiers


    Here is my code:


    http://www.inf.pucrs.br/lfraga/OpenGl%20Project.zip

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: Multitexture problem!

    Indeed, that's what you said in your first post, but not in the second:

    But in my machine that runs windows NT. it don´t works..Any idea?
    Am I expecting it is the same error than the previous ??

    Try to see if your GL libraries and headers are up to date. I can't see any other things.

  7. #7
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    11

    Re: Multitexture problem!

    Yes! The error that I describe in the first message is the same and occurs only on Windows NT. My GL libraries and headers are up date.
    I put the libraries in my gl folder of my Visual Studion .Net.

    But to me it is a mistery! Why my program works on Windows XP and don´t works on Windows NT?

    c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers


    c:\Documents and Settings\multipassex\main.cpp(50): error C2501: 'PFNGLMULTITEXCOORD2FARBPROC' : missing storage-class or type specifiers

    c:\Documents and Settings\multipassex\main.cpp(52): error C2501: 'PFNGLCLIENTACTIVETEXTUREARBPROC' : missing storage-class or type specifiers

  8. #8
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: Multitexture problem!

    What version of GL do you have on NT ? (glGetString (GL_VERSION))

  9. #9
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Naarn, Austria
    Posts
    1,102

    Re: Multitexture problem!

    That doesn't have anything to do with the error...

    You said you copied the newest headers in your GL directory. Then you should #include <GL/glext.h>, instead of #include "glext.h".

    Just to be sure, download the latest glext.h from the extension registry.

    Btw. multitexture is in GL core since version 1.2. You should use the core functions, not the ARB ones...

  10. #10
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    11

    Re: Multitexture problem!

    I know it! Firt I test using <gl/glext.h>

    How my program don´t work, I put the newest glext.h into my program directory.

    Again don´t work. I think that is a problem with the windows 2000. Because I test the same program in another machine with windows XP and compiled normaly.

    So, I don´t understand Why?

    Any, environment variable is missing?

Page 1 of 2 12 LastLast

Similar Threads

  1. multitexture problem
    By MoeTM in forum OpenGL: GLSL
    Replies: 0
    Last Post: 03-31-2011, 09:59 AM
  2. problem of Multitexture
    By keepmoving in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-02-2010, 09:48 PM
  3. problem of Multitexture
    By keepmoving in forum OpenGL: Windows
    Replies: 1
    Last Post: 07-01-2010, 05:15 PM
  4. problem of Multitexture
    By keepmoving in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 07-01-2010, 10:44 AM
  5. Multitexture Problem!
    By Malfatti in forum OpenGL: GLSL
    Replies: 1
    Last Post: 05-05-2006, 09:28 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