# SDL\_gfx and Dev-Cpp

**URL:** <https://discourse.libsdl.org/t/sdl-gfx-and-dev-cpp/11678>\
**Category:** SDL Development\
**Created:** [December 27, 2004, 1:39pm UTC](https://discourse.libsdl.org/t/sdl-gfx-and-dev-cpp/11678 "2004-12-27T13:39:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elhja](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/e/8e7dd6/32.png) [@elhja](https://discourse.libsdl.org/u/elhja)\
**Post date:** [December 27, 2004, 1:39pm UTC](https://discourse.libsdl.org/t/sdl-gfx-and-dev-cpp/11678/1 "2004-12-27T13:39:08Z")

</div>

Does anybody have compiled SDL\_gfx for Dev-Cpp or for Mingw32?  
I get errors creating static libraries.

Thanks in advance.

elhja

---

<div class="post-metadata">

**Author:** ![Sebastian\_Beschke](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@Sebastian\_Beschke](https://discourse.libsdl.org/u/Sebastian_Beschke)\
**Post date:** [January 4, 2005, 4:56pm UTC](https://discourse.libsdl.org/t/sdl-gfx-and-dev-cpp/11678/2 "2005-01-04T16:56:51Z")

</div>

elhja wrote:

> Does anybody have compiled SDL\_gfx for Dev-Cpp or for Mingw32?  
> I get errors creating static libraries.

I’ve attached a project that works for me. Basically you need to add a  
couple of defines that are not set by default:  
-DBUILDING\_DLL=1  
-DBUILD\_DLL=1  
-DWIN32

which is what that project does.

> elhja

-Sebastian  
-------------- next part --------------  
An embedded and charset-unspecified text was scrubbed…  
Name: SDL\_gfx.dev  
URL: [http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050104/0412d9f3/attachment.txt](http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050104/0412d9f3/attachment.txt)
