[关闭]
@zzzc18 2020-02-29T21:12:12.000000Z 字数 828 阅读 1322

VSCode配置

VSCode


OpenCV

大概就像这样,不过内容不一样
https://blog.csdn.net/cbc000/article/details/80670413

1

2

注意要打开项目文件夹而不是单个文件


这是成功的配置
(太爽了)

c_cpp_properties.json

  1. {
  2. "configurations": [
  3. {
  4. "name": "Linux",
  5. "includePath": [
  6. "${workspaceFolder}/**",
  7. "/usr/local/include/opencv4"
  8. ],
  9. "defines": [],
  10. "compilerPath": "/usr/bin/gcc",
  11. "cStandard": "c11",
  12. "cppStandard": "c++17",
  13. "intelliSenseMode": "clang-x64"
  14. }
  15. ],
  16. "version": 4
  17. }

这是通用的找头文件的方法


STM32

int32_t,uint32_t等解决方法

  1. // Add at ${workspaceFolder}/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h
  2. #ifdef MYDEBUG
  3. #include "stdint-intn.h"
  4. #include "stdint-uintn.h"
  5. #endif

c_cpp_properties.json这里不仅解决了int32_t,uint32_t,还解决了IRQn_Type

  1. "includePath": [
  2. "${workspaceFolder}/**",
  3. "/usr/include/x86_64-linux-gnu/**"
  4. ],
  5. "defines": [
  6. "MYDEBUG",
  7. "STM32F103xB"
  8. ]

解决过程大概就是顺着include找一找


All

arch下的字体'Noto Sans Mono', 'monospace', monospace, 'Noto Sans Fallback'

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注