1.GCC编译过程与动态链接库和静态链接库
    https://www.cnblogs.com/king-lps/p/7757919.html
    2.vs code配置
    https://blog.csdn.net/wannna/article/details/105109375
    3.编译和调用dll
    https://blog.csdn.net/u012842205/article/details/46820145?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.control

    https://blog.csdn.net/denglei265/article/details/3889470
    4.关于task.json
    注意参数节点,gcc的其他编译选项也可以类似加之其上。例如对于dll库的调用便可以直接输入。或者在vs code的终端在powershell中直接执行gcc命令来编译。

    1. {
    2. "version": "2.0.0",
    3. "tasks": [
    4. {
    5. "type": "shell",
    6. "label": "g++.exe build active file",
    7. "command": "D:\\mingw64\\bin\\g++.exe", /*此处设置为你的编译器路径*/
    8. "args": [
    9. "-g",
    10. "${file}",
    11. "-L'F:\\Project\\SP++3.0\\SP++3.0\\lib'", /*注意,此行指定库的lib目录,默认没有*/
    12. "-I'F:\\Project\\SP++3.0\\SP++3.0\\include'", /*此处指定库的include目录,默认没有*/
    13. "-o",
    14. "${fileDirname}\\${fileBasenameNoExtension}.exe"
    15. ],
    16. "options": {
    17. "cwd": "D:\\mingw64\\bin" /*此处设置你编译器路径的bin目录下*/
    18. },
    19. "problemMatcher": [
    20. "$gcc"
    21. ],
    22. "group": {
    23. "kind": "build",
    24. "isDefault": true
    25. }
    26. }
    27. ]
    28. }