# C++ Compiling error

**URL:** <https://discourse.mcneel.com/t/c-compiling-error/69389>\
**Category:** Rhino Developer\
**Created:** [August 23, 2018, 5:54pm UTC](https://discourse.mcneel.com/t/c-compiling-error/69389 "2018-08-23T17:54:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petras\_Vestartas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/petras_vestartas/32/480531_2.png) [@Petras\_Vestartas](https://discourse.mcneel.com/u/Petras_Vestartas)\
**Post date:** [August 23, 2018, 5:54pm UTC](https://discourse.mcneel.com/t/c-compiling-error/69389/1 "2018-08-23T17:54:18Z")

</div>

Hi,

When I open a new template for C++ plugin and try to compile it I get this error:

_Severity Code Description Project File Line Suppression State_  
_Error C1083 Cannot open include file: ‘WinSock2.h’: No such file or directory PlugIn1 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\atlmfc\include\atldef.h 720_

Before it was working fine, what could cause this issue?

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [August 28, 2018, 4:14pm UTC](https://discourse.mcneel.com/t/c-compiling-error/69389/2 "2018-08-28T16:14:09Z")

</div>

Hi @Petras_Vestartas,

I am not seeing this. Are you still getting this? Did you check the “Windows Sockets” box in the wizard?

– Dale

---

<div class="post-metadata">

**Author:** ![Petras\_Vestartas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/petras_vestartas/32/480531_2.png) [@Petras\_Vestartas](https://discourse.mcneel.com/u/Petras_Vestartas)\
**Post date:** [August 28, 2018, 4:40pm UTC](https://discourse.mcneel.com/t/c-compiling-error/69389/3 "2018-08-28T16:40:56Z")

</div>

I am pretty sure I messed up with registry files while cleaning all autodesk products. What helped was to format my hardrive and install new windows. Ech.
