在我的VS Code的g++开发环境中设置Include Path遇到的问题以及解决方法。

  • 在Editor环境中include 的文件有红色的波浪线显示include 文件找不到。
    • 解决方法: .vscode目录下生成c_cpp_properties.json 这个文件
      • ctrl+shit+p C/C++: Edit configurate(UI)
      • 进入后设置g++,设置include path .详见 https://code.visualstudio.com/docs/cpp/config-mingw
      • Editor的问题解决后,在Build Task时候还是会找不到对应的头文件。
        • 解决方法:一开始以为是c_cpp_properties.json配置错误,Google后发现c_cpp_properties.json解决的仅仅是编辑的波浪线问题,不能解决Build的问题
          • 在.vscode/task.json中追加编译参数就可以了
          • 	"tasks": [
            			"type": "cppbuild",
            			"label": "C/C++: g++.exe build active file",
            			"command": "C:\\msys64\\mingw64\\bin\\g++.exe",
            			"args": [
            				"-fdiagnostics-color=always",
            				"-g",
            				"${file}",
            				"-o",
            				"${fileDirname}\\${fileBasenameNoExtension}.exe",
            				"--include-directory=../../gui/lvgl"
                                        
            501 Mail path must not include special characters

              最近,我们公司的MDaemon邮件服务器,往186邮箱发送邮件时报错“501 Mail path must not include special characters”,请看下面的详细日志:   原因是MDaemon有个“反向散射保护”的功能,开启这个功能之后,邮件头发件人地址前面会加上“prvs=....” ,导致对方的邮件服务器系统不识别,就会报这个错误。   到底什么是“反向散射保护”呢?"反向散射" 指的是用户收到从未发送过邮件的响应邮件。比如:当垃圾邮件或病毒发送的邮件中包含伪造的"返回路径"地址时就会发生反向散射。因此,当一封邮件被收件人服务器拒收时,或者收件人有与账户关联的自动应答或"外出"/度假邮件,那么此响应邮件将指向伪造的地址。这会导致海量的伪造投递状态通知 (DSN) 或自动应答邮件撑爆用户的邮箱。不仅如此,垃圾邮件和病毒制造者经常会利用这种现象,有时会用它对邮件服务器发动拒绝服务 (Denial of Service,DoS) ......

            【tensorrt】——error: #error The version of CUB in your include path is not compatible with this releas

            tensorrt编译的时候报错:error: #error The version of CUB in y