2010-05-29 04:34:28     Error on including SDL_opengl.h

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-05-29 04:34:28     Error on including SDL_opengl.h

Aditya Pandit (INDIA)

Message: 89988   

 

Hello,

 

 

 

I am using SDL. Built a small display using SDL_image, SDL_gfx etc . The code compiles and runs fine on the target.

 

I am using :

 

bfin-uclinux-gcc (GCC) 4.1.2 (ADI svn)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

Now I want to use screen rotate functions as given in SDL_opengl.h .

 

When I include this header file  in my project i get lot of errors (similar to as shown below)

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------

 

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/SDL/SDL_opengl.h:3580:error‘GLboolean’ declared as function returning a function  

 

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/SDL/SDL_opengl.h:3567:error:‘GLint’ declared as function returning a function

 

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/SDL/SDL_opengl.h:5582: error: ‘PFNGLISFENCENVPROC’ declared as function returning a function

 

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/SDL/SDL_opengl.h:5583: error: ‘PFNGLTESTFENCENVPROC’ declared as function returning a function

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

I have also added SDL_gfx in the libraries section.

 

Is there anything i need to add to resolve these errors?

 

regards

 

Aditya

QuoteReplyEditDelete

 

 

2010-05-29 13:17:54     Re: Error on including SDL_opengl.h

Mike Frysinger (UNITED STATES)

Message: 89991   

 

are you sure that is the full error ?  SDL_opengl.h pulls in some GL/ header files which we dont provide anywhere in our dist.

QuoteReplyEditDelete

Attachments

    Outcomes