<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: undeadindustries</title>
    <description>The latest articles on DEV Community by undeadindustries (@undeadindustries).</description>
    <link>https://dev.to/undeadindustries</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F936529%2F6b30dca0-f70c-44cc-8d25-2f50618c14c0.png</url>
      <title>DEV Community: undeadindustries</title>
      <link>https://dev.to/undeadindustries</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/undeadindustries"/>
    <language>en</language>
    <item>
      <title>VSCode and WxWidgets</title>
      <dc:creator>undeadindustries</dc:creator>
      <pubDate>Mon, 03 Oct 2022 14:03:40 +0000</pubDate>
      <link>https://dev.to/undeadindustries/vscode-and-wxwidgets-3c4i</link>
      <guid>https://dev.to/undeadindustries/vscode-and-wxwidgets-3c4i</guid>
      <description>&lt;p&gt;I can't seem to get VS Code to like WxWidgets on Linux or MacOS. It seems like it's trying to default to MSW?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The specific question is making VSCode play nice (autocomplete, don't give false errors) with WxWidgets. In command prompt, compiling any Wx project works perfect.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;VS Code is installed&lt;/li&gt;
&lt;li&gt;Create folder for project. Let's call it /src/hello&lt;/li&gt;
&lt;li&gt;Create a hello.cpp file with code from: &lt;a href="https://docs.wxwidgets.org/3.0/overview_helloworld.html"&gt;https://docs.wxwidgets.org/3.0/overview_helloworld.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Download WxWidgets into /src/hello/deps&lt;/li&gt;
&lt;li&gt;Going through steps to compile and install Wx &lt;a href="https://docs.wxwidgets.org/trunk/plat_osx_install.html"&gt;https://docs.wxwidgets.org/trunk/plat_osx_install.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Check my Intellisense includes to include ${workspaceFolder}/**&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, in the command prompt, if I run: &lt;br&gt;
&lt;code&gt;g++ hello.cpp 'wx-config --cxxflags --libs' -o hello&lt;/code&gt;&lt;br&gt;
./hello runs perfect!&lt;/p&gt;

&lt;p&gt;But in VSCode is unusable because it's giving me this error:&lt;br&gt;
&lt;code&gt;cannot open source file "../../../lib/vc_lib/msw/wx/setup.h" (dependency of "wx/wxprec.h")&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I'm pretty sure msw is for windows? &lt;/p&gt;

&lt;p&gt;I feel like I've tried everything:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Downloaded and Git version of Wx (Yeah, I know it's the same. But people on the wx forums recommended trying...)&lt;/li&gt;
&lt;li&gt;Use the Homebrew WxWidgets install.&lt;/li&gt;
&lt;li&gt;Using the sample projects included with Wx.&lt;/li&gt;
&lt;li&gt;Using the Hello World&lt;/li&gt;
&lt;li&gt;Same issues in Linux and MacOS.&lt;/li&gt;
&lt;li&gt;Updating Intellisense's includes every way you can think of.&lt;/li&gt;
&lt;li&gt;Using the output of wxconfig and putting the cxxflags and lib include output into Intellisense.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Anyone able to test this all on their MacOS or Linux system and see if they are able to get VS Code to play nice?&lt;/p&gt;

&lt;p&gt;THANK YOU!!&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>cpp</category>
      <category>wxwidgets</category>
    </item>
  </channel>
</rss>
