# Compile and runtime errors in last version of iPlug2 master

**URL:** <https://iplug2.discourse.group/t/compile-and-runtime-errors-in-last-version-of-iplug2-master/148>\
**Category:** Windows\
**Created:** [10 July 2020 01:46 UTC](https://iplug2.discourse.group/t/compile-and-runtime-errors-in-last-version-of-iplug2-master/148 "2020-07-10T01:46:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasyan](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/vasyan/32/82_2.png) [@vasyan](https://iplug2.discourse.group/u/vasyan)\
**Post date:** [10 July 2020 01:46 UTC](https://iplug2.discourse.group/t/compile-and-runtime-errors-in-last-version-of-iplug2-master/148/1 "2020-07-10T01:46:40Z")

</div>

A few hours ago I tried the latest version of iPlug2 master. There was a build error while compiling in Visual Studio 2019 version 16.0.0:  
Error LNK2001 unresolved external symbol ""public: static class std::locale::id `std::codecvt<char16_t,char,struct _Mbstatet>::id" (?id@?$codecvt@_SDU_Mbstatet@@@std@@2V0locale@2@A)"`

I tried to make corrections in the ITextEntryControl.cpp file:  
#ifdef \_MSC\_VER  
- #if (\_MSC\_VER \>= 1900 /\* VS 2015\*/) && (\_MSC\_VER \< 1920 /\* pre VS 2019 _/)  
+ #if (\_MSC\_VER \>= 1900 /_ VS 2015\*/) && (\_MSC\_VER \<= 1920 /\* VS 2019 \*/)  
std::locale::id std::codecvt\<char16\_t, char, \_Mbstatet\>::id;  
#endif  
#endif

At the same time, the assembly was successful, however, when the plug-in was started in debug mode, a run-time error unexpectedly occurred in a completely wrong place, where in principle there could be no error - at least I had never encountered errors when initializing structures - `const IBlend BLEND_75 = IBlend(EBlend::Default, 0.75f);` , where there are no actions in the constructors other than assigning values.

 ![vs_exception_iblend](https://global.discourse-cdn.com/free1/uploads/iplug2/original/1X/dbc5b31445abe8af85ed89bf85138f68143302ee.jpeg)

How to make the plugin work without errors, I can’t imagine it possible, maybe someone has already encountered a similar error?

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/alex/32/72_2.png) [@Alex](https://iplug2.discourse.group/u/Alex)\
**Post date:** [10 July 2020 20:55 UTC](https://iplug2.discourse.group/t/compile-and-runtime-errors-in-last-version-of-iplug2-master/148/2 "2020-07-10T20:55:30Z")

</div>

Yes, I had this when experimenting with MSVC BuilTools. In the end, it was gone. I don’t remember exactly how I think I made additional #define \_MSC\_VER 1930 somewhere in my files…  
Удачи  
Alex

---

<div class="post-metadata">

**Author:** ![vasyan](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/vasyan/32/82_2.png) [@vasyan](https://iplug2.discourse.group/u/vasyan)\
**Post date:** [12 July 2020 08:44 UTC](https://iplug2.discourse.group/t/compile-and-runtime-errors-in-last-version-of-iplug2-master/148/3 "2020-07-12T08:44:55Z")

</div>

> [@Alex](#):
>
> #define \_MSC\_VER 1930

Does this method get rid of a runtime error? Everything is OK with compilation.
