title: VC_Linux - Visual Studio c++ Linux Cross Platform build for Raspberry Pi - Library issue
body: <p>I'm experimenting with Visual studio's VC_Linux for Raspberry Pi3 in the hope of being able to compile and debug code.</p>
  <p>I'm attempting to code a UDP client and server on the Pi.</p>
  <p>Out of the Box VCLinux worked great for a simple hello world project... but as soon as I attempt to reference source files from the Pi that exist in the usr/include of the Pi folder Visual Studio starts to complain about source files not existing or that they cannot be found.</p>
  <p>For example I need the socket.h file to build a UDP client/Server. In the Pi this can be found in</p>
  <pre><code>usr\include\asm-generic\socket.h
  </code></pre>
  <p>I copied the whole usr\include file from the Pi to my Windows machine (Renaming it PI_Source so the include folder is not the same as the default one of &quot;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Linux\include&quot;). I attempted to add the copied PI_Source folder to my include directories and source directories within the project properties.</p>
  <p><a href="https://i.stack.imgur.com/cVyVm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cVyVm.png" alt="VC++ Directories" /></a></p>
  <p>Attempting to build the following file results in an error...with Visual Studio complaining that it can't find socket.h and sockios.h.</p>
  <pre><code>#include &lt;cstdio&gt;
  #include &lt;asm-generic\socket.h&gt;
  #include &lt;asm-generic\sockios.h&gt;
  
  int main()
  {
      printf(&quot;hello from Pi_Testing!\n&quot;);
      return 0;
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/CNqFL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CNqFL.png" alt="Build Error" /></a></p>
  <p>How do I get Visual studio to successfully build with the source files and directories linked properly?</p>
  <p>Am I putting the Pi Include folder in the wrong Path? Does it need to be placed under <br>
  *C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Linux\include\usr\include*
  <br>
  Any other recommendations/suggestions for me to try?</p>