# How do you compile on VS2017?

**URL:** <https://discourse.cataclysmdda.org/t/how-do-you-compile-on-vs2017/22736>\
**Category:** The Lab\
**Created:** [February 11, 2020, 8:57pm UTC](https://discourse.cataclysmdda.org/t/how-do-you-compile-on-vs2017/22736 "2020-02-11T20:57:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppanda0421](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@ppanda0421](https://discourse.cataclysmdda.org/u/ppanda0421)\
**Post date:** [February 11, 2020, 8:57pm UTC](https://discourse.cataclysmdda.org/t/how-do-you-compile-on-vs2017/22736/1 "2020-02-11T20:57:36Z")

</div>

Hi,

I read/followed the instructions from [https://github.com/CleverRaven/Cataclysm-DDA/blob/07d5448dfcfc2c22dd7b07cf234c19de91cab0d2/doc/COMPILING/COMPILING-VS-VCPKG.md](https://github.com/CleverRaven/Cataclysm-DDA/blob/07d5448dfcfc2c22dd7b07cf234c19de91cab0d2/doc/COMPILING/COMPILING-VS-VCPKG.md).

The dependency script(s) didn’t work so I followed the instructions via ‘Dependency install commands for vcpkg in doc do not work #37623’

Ok loaded up solution in VS and went into compile, said it was missing ‘SDL.h’ - thought the vcpkg was supposed to fix that? Copied over windepends into root directory and builds fine (like in way earlier builds) Started to debug and got entry point missing in one of the DLLs (or something to that effect).

So… did someone actually follow the instructions on a clean system? Or what am I missing?

PS - I wanted to do a specific build # but following the instructions in the document (eg git cloning) doesn’t work either.

Win 10 64 bit. Ran all commands in Administrator Command Prompt.

Thanks.

---

<div class="post-metadata">

**Author:** ![ItzStone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/itzstone/32/2471_2.png) [@ItzStone](https://discourse.cataclysmdda.org/u/ItzStone)\
**Post date:** [February 12, 2020, 1:09am UTC](https://discourse.cataclysmdda.org/t/how-do-you-compile-on-vs2017/22736/2 "2020-02-12T01:09:25Z")

</div>

I got it working today,  
[https://youtu.be/MTIUfkkbxSE](https://youtu.be/MTIUfkkbxSE) worked for me.

---

<div class="post-metadata">

**Author:** ![ppanda0421](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@ppanda0421](https://discourse.cataclysmdda.org/u/ppanda0421)\
**Post date:** [February 12, 2020, 2:05am UTC](https://discourse.cataclysmdda.org/t/how-do-you-compile-on-vs2017/22736/3 "2020-02-12T02:05:38Z")

</div>

I actually got CDDA to compile myself. Couple things to note first:

1. The CDDA solution still references the Windepends folder with hardcoded folder names.
2. Essentially, the vspkg installer creates individual folders for each package.

So I copied the individual folders that CDDA uses into their respective folders within Windepends.

Ok so I got it to compile. Now when I debug it I get a crash within the SDL\_free function 😕

I’ll look at the youtube link you provided and see if anything from there will help. Hopefully we don’t have to make too many changes to the solutions settings.

Thanks btw.

PS - I’m using compiling build 10301

---

<div class="post-metadata">

**Author:** ![ItzStone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/itzstone/32/2471_2.png) [@ItzStone](https://discourse.cataclysmdda.org/u/ItzStone)\
**Post date:** [February 12, 2020, 3:50am UTC](https://discourse.cataclysmdda.org/t/how-do-you-compile-on-vs2017/22736/4 "2020-02-12T03:50:43Z")

</div>

I’m using the latest version on github, and VS 2019. After I got the VSPKG and SDL installed, I was getting a bunch of errors but retargeting the project fixed that.
