+ LD lib/crypto_bench
ld: library not found for -l:libcryptopp.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is the output of gcc --version (gcc is linked to clang but not directly used):
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
export PATH="/usr/local/lib:$PATH"
>> clang++ -g2 -O3 -l /usr/local/include /usr/local/lib/libcryptopp.a -WI,-L
And got the error:
ld: library not found for -l/usr/local/include
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It seems like the intention of this command was to ask clang to link to the include path to crypto++ but clang doesn't have the include path on in its build tools? Further suggestions or clarifications would be great, I tried googling again and couldn't find anything.
That's an "I" as in "include", bot a lowercase "L".
Use this command:
clang++ -g2 -O3 -I /usr/local/include test.cxx
/usr/local/lib/libcryptopp.a -o test.exe
On Sep 17, 2021, at 16:39, Samyukta Yagati <sa...@berkeley.edu> wrote:
(I currently have -l:libcryptopp.a in my LDFLAGS)
--
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/436b6393-8bb5-4b5e-b50c-1bb71da7aa24n%40googlegroups.com.