<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Windows - 标签 - SynJadeX::Blog</title><link>https://www.synjadex.top/tags/windows/</link><description>知识与你分享</description><generator>Hugo 0.167.0 &amp; FixIt v1.0.0-beta-mukxzari</generator><language>zh-CN</language><managingEditor>synjadex@outlook.com (SynJadeX)</managingEditor><webMaster>synjadex@outlook.com (SynJadeX)</webMaster><lastBuildDate>Thu, 15 Oct 2026 23:15:01 +0800</lastBuildDate><atom:link href="https://www.synjadex.top/tags/windows/index.xml" rel="self" type="application/rss+xml"/><item><title>C++中导入windows.h导致的宏污染问题</title><link>https://www.synjadex.top/posts/2026-08-30-cpp-windowsh-macro-definition-pollution/</link><pubDate>Sun, 30 Aug 2026 12:23:28 +0800</pubDate><author>synjadex@outlook.com (SynJadeX)</author><guid>https://www.synjadex.top/posts/2026-08-30-cpp-windowsh-macro-definition-pollution/</guid><category domain="https://www.synjadex.top/categories/%E6%95%99%E7%A8%8B/">教程</category><description>&lt;p&gt;我在写一个用到winAPI的C++程序时遇到了这样的报错：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[1/3] Building CXX object CMakeFiles\Main.dir\main.cpp.obj&#10;FAILED: [code=2] CMakeFiles/Main.dir/main.cpp.obj &#10;E:\CBuildTools\MSVC\Build\VC\Tools\MSVC\14.51.36231\bin\Hostx64\x64\cl.exe /nologo /TP -external:IE:\CBuildTools\vcpkg\installed\x64-windows\include -external:IE:\CBuildTools\vcpkg\installed\x64-windows\include\opencv4 -external:IE:\CBuildTools\vcpkg\installed\x64-windows\include\eigen3 -external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /Zi /Ob0 /Od /RTC1 -std:c&amp;#43;&amp;#43;20 -MDd /utf-8 /showIncludes /FoCMakeFiles\Main.dir\main.cpp.obj /FdCMakeFiles\Main.dir\ /FS -c E:\myCodeHub\Cpp\DeepLearningCpp\main.cpp&#10;E:\CBuildTools\vcpkg\installed\x64-windows\include\xtensor\core\../core/xstrides.hpp(730): error C2589: “(”:“::”右边的非法标记&#10;E:\CBuildTools\vcpkg\installed\x64-windows\include\xtensor\core\../core/xstrides.hpp(120): note: 此诊断出现在编译器生成的函数“S xt::uninitialized_shape(size_type)”中&#10;E:\CBuildTools\vcpkg\installed\x64-windows\include\xtensor\core\../core/xstrides.hpp(730): error C3878: 语法错误:“expression”后出现意外标记“(”&#10;E:\CBuildTools\vcpkg\installed\x64-windows\include\xtensor\core\../core/xstrides.hpp(120): note: 此诊断出现在编译器生成的函数“S xt::uninitialized_shape(size_type)”中&#10;E:\CBuildTools\vcpkg\installed\x64-windows\include\xtensor\core\../core/xstrides.hpp(730): error C2760: 语法错误: 此处出现意外的“)”；应为“;”&#10;...&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;看上去匪夷所思的，跳转到报错的代码行是这样的：&lt;/p&gt;</description></item><item><title>Windows上容器化技术Docke的安装与使用</title><link>https://www.synjadex.top/posts/2026-07-26-docker-reinstall-course/</link><pubDate>Sun, 26 Jul 2026 21:33:13 +0800</pubDate><author>synjadex@outlook.com (SynJadeX)</author><guid>https://www.synjadex.top/posts/2026-07-26-docker-reinstall-course/</guid><category domain="https://www.synjadex.top/categories/%E6%95%99%E7%A8%8B/">教程</category><description>&lt;p&gt;我之前写了一个Python小项目，本来在我电脑上运行得好好的，但是发给我朋友，虽然他那边也有装好的Python环境，但是还是不能直接运行，不是依赖库缺失，就是某个环节变量没设置，倒腾环境配置半天才能跑起来。所以那时我就在想，要是能把我电脑的环境一起发过去的话，是不是就能直接运行。&lt;/p&gt;</description></item><item><title>Windows上的C/C++中文乱码问题</title><link>https://www.synjadex.top/posts/2026-07-25-c-cpp-fix-chinesemessycode/</link><pubDate>Sat, 25 Jul 2026 23:55:39 +0800</pubDate><author>synjadex@outlook.com (SynJadeX)</author><guid>https://www.synjadex.top/posts/2026-07-25-c-cpp-fix-chinesemessycode/</guid><category domain="https://www.synjadex.top/categories/%E6%95%99%E7%A8%8B/">教程</category><description>&lt;p&gt;用VS Code写C语言程序时输出中文乱码的问题，接触过几次这种问题，问题的根本也多多少少摸清了。VS code将默认C语言程序保存为UTF-8，而window的终端输出默认是GBK编码。这里编码不统一就造成了乱码问题。&lt;/p&gt;</description></item></channel></rss>