How can i fix U1077 CLion

0

I'm working on a C++ with d3d11 project and want to add additional dependences.. But currently i'm working on CLion. I know how to add additional dependences in Visual Studio 2019 but i'm new in CLion i don't know how i can add additional dependences, I went to CMakeList.txt and added add_library(d3d11.lib STATIC IMPORTED) but still not working when i build it to run it gives me this errors:

LINK Pass 1: command "C:\PROGRA~2\MICROS~2\2019\ENTERP~1\VC\Tools\MSVC\1428~1.299\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\VCCSA.dir\objects1.rsp /out:VCCSA.exe /implib:VCCSA.lib /pdb:C:\clionProjects\VCCSA\cmake-build-debug\VCCSA.pdb /version:0.0 /machine:X86 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\VCCSA.dir/intermediate.manifest CMakeFiles\VCCSA.dir/manifest.res" failed (exit code 1120) with the following output:
GameWindow.cpp.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall Window::onCreate(void)" (?onCreate@Window@@UAEXXZ) referenced in function "public: virtual void __thiscall GameWindow::onCreate(void)" (?onCreate@GameWindow@@UAEXXZ)
GraphicsEngine.cpp.obj : error LNK2019: unresolved external symbol _D3D11CreateDevice@40 referenced in function "public: bool __thiscall GraphicsEngine::init(void)" (?init@GraphicsEngine@@QAE_NXZ)
VCCSA.exe : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion 2021.1.1\bin\cmake\win\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.```

[The Error in image][1]

[1]: https://i.stack.imgur.com/mxVdK.png
c++
visual-studio
cmake
clion
asked on Stack Overflow May 22, 2021 by Unknown Person

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0