Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with linking #240

Closed
trlef19 opened this issue Dec 30, 2024 · 1 comment
Closed

Issue with linking #240

trlef19 opened this issue Dec 30, 2024 · 1 comment

Comments

@trlef19
Copy link

trlef19 commented Dec 30, 2024

When im trying to link the library im getting this:
====================[ Build | test_LPC | default ]============================== "C:\Program Files\JetBrains\CLion 2024.3.1.1\bin\cmake\win\x64\bin\cmake.exe" --build D:\Thesis\build --target test_LPC -j 6 [1/1] Linking CXX executable test_LPC.exe FAILED: test_LPC.exe C:\WINDOWS\system32\cmd.exe /C "cd . && C:\PROGRA~1\JETBRA~1\CLION2~1.1\bin\mingw\bin\G__~1.EXE -Wl,--whole-archive:C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_dsp_sse2.lib CMakeFiles/test_LPC.dir/LPC.cpp.obj CMakeFiles/test_LPC.dir/test_LPC_compatibility.cpp.obj -o test_LPC.exe -Wl,--out-implib,libtest_LPC.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -lKFR C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_io.lib C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_dsp_avx.lib C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_dsp_sse2.lib C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_dsp_sse41.lib C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_dsp_avx2.lib C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_dsp_avx512.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." C:\Program Files\JetBrains\CLion 2024.3.1.1\bin\mingw\bin/ld.exe: unrecognized option '--whole-archive:C:/Users/user/vcpkg/installed/x64-windows/debug/lib/debug/kfr_dsp_sse2.lib' C:\Program Files\JetBrains\CLion 2024.3.1.1\bin\mingw\bin/ld.exe: use the --help option for usage information collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
Im using vcpkg, latest clion with integrated mingw, cmake, windows 11 23h2. any ideas?

@trlef19
Copy link
Author

trlef19 commented Jan 2, 2025

it was -Wl, -whole-archive instead of -Wl, --whole-archive after all

@trlef19 trlef19 closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant