# Trouble compiling

**URL:** <https://discourse.cataclysmdda.org/t/trouble-compiling/9639>\
**Category:** The Garage\
**Created:** [May 21, 2015, 5:55pm UTC](https://discourse.cataclysmdda.org/t/trouble-compiling/9639 "2015-05-21T17:55:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hurnhu](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@hurnhu](https://discourse.cataclysmdda.org/u/hurnhu)\
**Post date:** [May 21, 2015, 5:55pm UTC](https://discourse.cataclysmdda.org/t/trouble-compiling/9639/1 "2015-05-21T17:55:47Z")

</div>

so first i had visual studios 2013, and i was getting a few errors. so i did some digging and found out i need to use visual studios 2015 mscv v140. so i downloaded and tried opening the solution. a lot of the errors went away. but ther are still fatal error that make it so i cant even compile it.

now my problem is this line below, in map.cpp. on line 4927

` int sm_squares_seen[my_MAPSIZE][my_MAPSIZE];
`  
i have the error

```auto
Error IntelliSense: 'this' cannot be used in a constant expression
```

and also the error

```auto

```

on line 6580. with the error

```auto
Error IntelliSense: expression must have a constant value
```

thanks if you know how to fix…
