# Compile errors (MinGW / SDL)

**URL:** https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303
**Category:** The Garage
**Created:** [August 10, 2015, 7:42am UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303 "2015-08-10T07:42:09Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Shadefang](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Shadefang](https://discourse.cataclysmdda.org/u/Shadefang)
#### Post date: [August 10, 2015, 7:42am UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303/1 "2015-08-10T07:42:09Z")

</div>

I followed the directions in [COMPILING.md](http://COMPILING.md) for compiling under MinGW, and got a massive spam of thigns alongs the lines of:

: undefined reference to 'SDL\_(various things here)

[http://pastebin.com/HvNmSq6s](http://pastebin.com/HvNmSq6s)

running windows 7 64 bit, and as I said, followed the instructions in [COMPILING.md](http://COMPILING.md) for MinGW.  
Very new to this type of thing, any help is appreciated.

---

<div class="post-metadata">

### Author: ![DanmakuDan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/danmakudan/32/5057_2.png) [@DanmakuDan](https://discourse.cataclysmdda.org/u/DanmakuDan)
#### Post date: [August 10, 2015, 1:11pm UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303/2 "2015-08-10T13:11:28Z")

</div>

It looks like the SDL2\_image library is included, but the main SDL2 library is not (the references could be out of order). Which instructions are you using for Windows, the MinGW download or MSYS2?

---

<div class="post-metadata">

### Author: ![Shadefang](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Shadefang](https://discourse.cataclysmdda.org/u/Shadefang)
#### Post date: [August 11, 2015, 1:57am UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303/3 "2015-08-11T01:57:00Z")

</div>

MinGW instructions.  
EDIT: poking it today, noticed something I forgot to mention. the first thing is spits out to me when I run the make command (before g++) is a pair of: make: sdl2-config: Command not found  
so the main SDL library being screwed makes sense, but I have no clue what I did wring in installing it.

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [August 11, 2015, 2:58am UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303/4 "2015-08-11T02:58:09Z")

</div>

It’s trying to run a program (sdl2-config) that tells it where the SDL libraries are, but it can’t find the program.  
I don’t know if the mingw environment normally has those programs available.

---

<div class="post-metadata">

### Author: ![Shadefang](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Shadefang](https://discourse.cataclysmdda.org/u/Shadefang)
#### Post date: [August 11, 2015, 4:15am UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303/5 "2015-08-11T04:15:53Z")

</div>

Seems so obvious in hindsight, thanks.  
Just needed to toss the sdl2-config from sdl’s bin folder into the cataclysm directory.

---

<div class="post-metadata">

### Author: ![DanmakuDan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/danmakudan/32/5057_2.png) [@DanmakuDan](https://discourse.cataclysmdda.org/u/DanmakuDan)
#### Post date: [August 11, 2015, 12:51pm UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303/6 "2015-08-11T12:51:59Z")

</div>

I think for MinGW the bin/local bin folders have to be added to your Windows path variable so make can execute it without needing to know exactly where it is.

---

<div class="post-metadata">

### Author: ![Shadefang](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Shadefang](https://discourse.cataclysmdda.org/u/Shadefang)
#### Post date: [August 11, 2015, 10:48pm UTC](https://discourse.cataclysmdda.org/t/compile-errors-mingw-sdl/10303/7 "2015-08-11T22:48:34Z")

</div>

Already had the MinGW bin folder in in my path
