xnxkzeu / cs2-cheat

MIT License
18 stars 2 forks source link

Error while compilation #3

Closed infine905 closed 10 months ago

infine905 commented 10 months ago

====================[ Build | cs2-cheat | release ]============================= "C:\Program Files\JetBrains\CLion 2023.3.2\bin\cmake\win\x64\bin\cmake.exe" --build C:\Users\PC\Desktop\cs2-cheat-main\build\release --target cs2-cheat -j 22 [1/1] Linking CXX shared library cs2-cheat.dll FAILED: cs2-cheat.dll cs2-cheat.lib cmd.exe /C "cd . && C:\PROGRA~1\LLVM\bin\clang++.exe -fuse-ld=lld-link -nostartfiles -nostdlib -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Xlinker /ENTRY:DllEntryPoint -shared -o cs2-cheat.dll -Xlinker /MANIFEST:EMBED -Xlinker /implib:cs2-cheat.lib -Xlinker /pdb:cs2-cheat.pdb -Xlinker /version:0.0 CMakeFiles/cs2-cheat.dir/src/core/helpers/memory.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/helpers/logger.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/helpers/schema.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/helpers/input.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/helpers/render.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/helpers/entities.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/hooks/functions/framestagenotify.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/hooks/functions/mouseinputenabled.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/hooks/functions/present.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/hooks/functions/resizebuffers.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/ui/menu.cpp.obj CMakeFiles/cs2-cheat.dir/src/core/hooks/hooks.cpp.obj CMakeFiles/cs2-cheat.dir/src/features/esp.cpp.obj CMakeFiles/cs2-cheat.dir/src/main.cpp.obj vcpkg_installed/x64-windows-llvm-static/lib/spdlog.lib vcpkg_installed/x64-windows-llvm-static/lib/minhook.x64.lib vcpkg_installed/x64-windows-llvm-static/lib/lunasvg.lib vcpkg_installed/x64-windows-llvm-static/lib/imgui.lib vcpkg_installed/x64-windows-llvm-static/lib/bz2.lib vcpkg_installed/x64-windows-llvm-static/lib/libpng16.lib vcpkg_installed/x64-windows-llvm-static/lib/lunasvg.lib vcpkg_installed/x64-windows-llvm-static/lib/freetype.lib vcpkg_installed/x64-windows-llvm-static/lib/zlib.lib vcpkg_installed/x64-windows-llvm-static/lib/bz2.lib vcpkg_installed/x64-windows-llvm-static/lib/libpng16.lib vcpkg_installed/x64-windows-llvm-static/lib/zlib.lib vcpkg_installed/x64-windows-llvm-static/lib/brotlidec.lib vcpkg_installed/x64-windows-llvm-static/lib/brotlicommon.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cmd.exe /C "cd /D C:\Users\PC\Desktop\cs2-cheat-main\build\release && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file C:/Users/PC/Desktop/cs2-cheat-main/third_party/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary C:/Users/PC/Desktop/cs2-cheat-main/build/release/cs2-cheat.dll -installedDir C:/Users/PC/Desktop/cs2-cheat-main/build/release/vcpkg_installed/x64-windows-llvm-static/bin -OutVariable out"" lld-link: error: undefined symbol: __declspec(dllimport) fdopen eferenced by bz2.lib(bzlib.c.obj):(bzopen_or_bzdopen)

lld-link: error: undefined symbol: __declspec(dllimport) fileno referenced by bz2.lib(bzlib.c.obj):(bzopen_or_bzdopen)

lld-link: error: undefined symbol: __declspec(dllimport) setmode referenced by bz2.lib(bzlib.c.obj):(bzopen_or_bzdopen) clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.

porches1337 commented 10 months ago

target_link_librariers( target PRIVATE MSVCRT )