cmd /c chcp 65001>nul && D:\MinGW\bin\g++.exe -fdiagnostics-color=always -LE:\Projects\Repositories\SharkEngine\tests\VariantTesting -lvariant -IE:\Projects\Repositories\SharkEngine E:\Projects\Repositories\SharkEngine\tests\VariantTesting\test1.cpp -o E:\Projects\Repositories\SharkEngine\tests\VariantTesting\test1
C:\Users\AE01~1\AppData\Local\Temp\cctUuKjO.o:test1.cpp:(.text+0x2a): undefined reference to `Variant::Variant(int)'
C:\Users\AE01~1\AppData\Local\Temp\cctUuKjO.o:test1.cpp:(.text+0x43): undefined reference to `Variant::Variant(double)'
C:\Users\AE01~1\AppData\Local\Temp\cctUuKjO.o:test1.cpp:(.text+0x5a): undefined reference to `Variant::Variant(bool)'
(...and many more errors about undefined operators...)
collect2.exe: error: ld returned 1 exit status
Вот tasks.json :
{
"tasks": [
{
"type": "cppbuild",
"label": "(Custom1)C/C++: g++.exe сборка активного файла",
"command": "D:\\MinGW\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-L${fileDirname}",
"-lvariant",
"-I${workspaceFolder}",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "Задача создана отладчиком."
}
],
"version": "2.0.0"
}
< /code>
У меня есть догадка, которую я неправильно назвал библиотеку, так что вот папка, в которой находится библиотека с исполняемым файлом: < /p>
┠
┠
┠
┖
Подробнее здесь: https://stackoverflow.com/questions/795 ... -in-vscode
Мобильная версия