cutable.exe
< /blockquote>
не был создан.
Структура моего проекта:
Код: Выделить всё
.vscode
tasks.json
include
-glad
--glad.h
-GLFW
--glfw3.h
--glfw3native.h
-KHR
--khrplatform.h
lib
-libglw3dll.a
src
-glad.c
-main.cpp
glfw3.dll
Код: Выделить всё
#include
#include
#include
using namespace std;
int main(){
return 0;
}
Код: Выделить всё
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe build active file",
"command": "D:/msys64/mingw64.exe",
"args": [
"-g",
"-std=c++17",
"-I${workspaceFolder}/include",
"-L${workspaceFolder}/lib",
"${workspaceFolder}/src/main.cpp",
"${workspaceFolder}/src/glad.c",
"-lglfw3dll",
"-o",
"${workspaceFolder}/cutable.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "compiler: D:/msys64/mingw64.exe"
}
]
}
P.S. Я использую компьютер с Windows 10 и 64-битный компилятор g++ MinGW.
Подробнее здесь: https://stackoverflow.com/questions/791 ... -generated
Мобильная версия