# SDL\_opengl.h is not included in the SDL framework

**URL:** <https://discourse.libsdl.org/t/sdl-opengl-h-is-not-included-in-the-sdl-framework/5355>\
**Category:** SDL Development\
**Created:** [October 31, 2001, 5:37pm UTC](https://discourse.libsdl.org/t/sdl-opengl-h-is-not-included-in-the-sdl-framework/5355 "2001-10-31T17:37:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elifarley\_C\_Coelho](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/e/f1d935/32.png) [@Elifarley\_C\_Coelho](https://discourse.libsdl.org/u/Elifarley_C_Coelho)\
**Post date:** [October 31, 2001, 5:37pm UTC](https://discourse.libsdl.org/t/sdl-opengl-h-is-not-included-in-the-sdl-framework/5355/1 "2001-10-31T17:37:00Z")

</div>

Hi Darrell, hi all,

After compiling the target named “Framework” in PB, I noticed it was not  
possible to compile the test application “testgl.app”. One of the  
reasons is that it could not find “SDL\_opengl.h”.

I think this header file should be included as a public header in the  
framework (unless there is a special reason not to - is there?)

Even after I included this header file, I could not compile the  
testgl.app because of the following errors:

…/…/test/testgl.c:505: #elif or #else outside an #if  
…/…/test/testgl.c:513: #endif outside an #if

Regards,

Elifarley C. Coelho  
[http://www.geocities.com/elifarley/\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_](http://www.geocities.com/elifarley/ _________________________________________________________ )  
Do You Yahoo!?  
Get your free @yahoo.com address at [http://mail.yahoo.com](http://mail.yahoo.com)

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [November 2, 2001, 11:45am UTC](https://discourse.libsdl.org/t/sdl-opengl-h-is-not-included-in-the-sdl-framework/5355/2 "2001-11-02T11:45:01Z")

</div>

> Hi Darrell, hi all,

> After compiling the target named “Framework” in PB, I noticed it was not  
> possible to compile the test application “testgl.app”. One of the  
> reasons is that it could not find “SDL\_opengl.h”.

> I think this header file should be included as a public header in the  
> framework (unless there is a special reason not to - is there?)

Yes, it should, it just hadn’t been added yet.

> Even after I included this header file, I could not compile the  
> testgl.app because of the following errors:

> …/…/test/testgl.c:505: #elif or #else outside an #if  
> …/…/test/testgl.c:513: #endif outside an #if

This should be fixed in CVS (but the PB project isn’t updated yet)

Thanks,  
-Sam Lantinga, Software Engineer, Blizzard Entertainment
