<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=440927&amp;view=findpost&amp;p=3898422</guid>
        <pubDate>Tue, 26 Dec 2023 14:56:28 +0000</pubDate>
        <title>Настройка  Visual Studio Code для работы с msys2</title>
        <link>https://forum.sources.ru/index.php?showtopic=440927&amp;view=findpost&amp;p=3898422</link>
        <description><![CDATA[tuchin: Я видел эту статью, брал указанное содержание файлов json - не получилось. Попробую еще раз.]]></description>
        <author>tuchin</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=440927&amp;view=findpost&amp;p=3898417</guid>
        <pubDate>Tue, 26 Dec 2023 13:39:00 +0000</pubDate>
        <title>Настройка  Visual Studio Code для работы с msys2</title>
        <link>https://forum.sources.ru/index.php?showtopic=440927&amp;view=findpost&amp;p=3898417</link>
        <description><![CDATA[Majestio: У тебя явно косяк в настройках. Компилятору на вход подаётся JSON-файл. Это ни в какие ворота. <br>
В конфиге должны быть описаны три &quot;процедуры&quot;: сборка, запуск, отладка.<br>
Посмотри, например, <a class='tag-url' href='https://ru.stackoverflow.com/questions/1172843/%D0%9A%D0%B0%D0%BA-%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B8%D1%82%D1%8C-visual-studio-code-%D0%BD%D0%B0-%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D1%83-%D1%81-%D0%A1' target='_blank'>вот эту ветку</a> на оверфлове.]]></description>
        <author>Majestio</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=440927&amp;view=findpost&amp;p=3898412</guid>
        <pubDate>Tue, 26 Dec 2023 12:19:25 +0000</pubDate>
        <title>Настройка  Visual Studio Code для работы с msys2</title>
        <link>https://forum.sources.ru/index.php?showtopic=440927&amp;view=findpost&amp;p=3898412</link>
        <description><![CDATA[tuchin: Здравствуйте&#33;<br>
Попробовал настроить VSC для работы с MinGW. Файл c_cpp_properties.json:<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;&quot;configurations&quot;: [</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;name&quot;: &quot;Win32&quot;,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;compilerPath&quot;: &quot;N:/msys64/mingw64/bin/g++.exe&quot;,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;intelliSenseMode&quot;: &quot;gcc-x86&quot;,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;includePath&quot;: [&quot;${workspaceFolder}&quot;,&quot;N:/msys64/mingw64/include&quot;],</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;defines&quot;: [&quot;_DEBUG&quot;,&quot;UNICODE&quot;,&quot;_UNICODE&quot;],</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;cStandard&quot;: &quot;c11&quot;,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;cppStandard&quot;: &quot;c++17&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;],</div><div class="code_line">&nbsp;&nbsp; &nbsp;&quot;version&quot;: 4,</div><div class="code_line">&nbsp;&nbsp; &nbsp;&quot;enableConfigurationSquiggles&quot;: true</div><div class="code_line">}</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>При запуске отладки получаю сообщение:<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Выполнение задачи: N:\msys64\mingw64\bin\g++.exe -std=c++17 -g N:\MyProgramming\cppStudy\.vscode\c_cpp_properties.json -o N:\MyProgramming\cppStudy\.vscode\c_cpp_properties.exe </div><div class="code_line">&nbsp;</div><div class="code_line">N:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:N:\MyProgramming\cppStudy\.vscode\c_cpp_properties.json: file format not recognized; treating as linker script</div><div class="code_line">N:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:N:\MyProgramming\cppStudy\.vscode\c_cpp_properties.json:1: syntax error</div><div class="code_line">collect2.exe: error: ld returned 1 exit status</div></ol></div></div></div></div>У меня следующие вопросы:<br>
1. Что в этом файле неправильно? Я уже несколько раз проверял его и сравнивал с примерами в интернете, но ошибку найти не смог.<br>
2. Как в файле json можно определить причину ошибки? Может быть есть какое-то расширение для VSC или специальная программа, которая находит ошибки?<br>
Проект прикрепил.<br>
<span class="b-attach" data-size="2694" data-hits="91" data-attach-id="65298" data-attach-post-id="3898412">
			<span class="b-attach__title"></span><a class='b-attach-link' href='https://forum.sources.ru/index.php?act=Attach&amp;type=post&amp;id=3898412&amp;attach_id=65298' title='Скачать файл' target='_blank'>cppStudy.zip</a> (, : 91)
		</span>]]></description>
        <author>tuchin</author>
        <category>Кроссплатформенный C/C++: cl/gcc/Qt/Gtk+/WxWidgets</category>
      </item>
	
      </channel>
      </rss>
	