Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-17 Thread Samyukta Yagati
Thanks for your help! Resolved, the issue was in my Makefile flags. On Friday, September 17, 2021 at 3:11:53 PM UTC-7 Mouse wrote: > Sorry, I've no idea what your makefile looks like, or how to convey the > working flags to it. > > On Sep 17, 2021, at 16:39, Samyukta Yagati wrote: > > (I curr

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-17 Thread Uri Blumenthal
Sorry, I've no idea what your makefile looks like, or how to convey the working flags to it. > On Sep 17, 2021, at 16:39, Samyukta Yagati wrote: > > (I currently have -l:libcryptopp.a in my LDFLAGS) > >> On Friday, September 17, 2021 at 1:38:31 PM UTC-7 Samyukta Yagati wrote: >> Ah I see --

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-17 Thread Samyukta Yagati
(I currently have -l:libcryptopp.a in my LDFLAGS) On Friday, September 17, 2021 at 1:38:31 PM UTC-7 Samyukta Yagati wrote: > Ah I see -- I'm using make with a custom makefile to build the source > files in my project, is there a way to translate this to flags in the > makefile? > > On Thursday,

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-17 Thread Samyukta Yagati
Ah I see -- I'm using make with a custom makefile to build the source files in my project, is there a way to translate this to flags in the makefile? On Thursday, September 16, 2021 at 6:31:25 PM UTC-7 Mouse wrote: > Say, you have a file that includes Crypto++ headers and needs linking with > C

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-16 Thread Uri Blumenthal
Say, you have a file that includes Crypto++ headers and needs linking with Crypto++ library. And Crypto++ is installed into /usr/local. Then, the following would be sufficient: clang++ -o my_binary -I/usr/local/include my_source.cpp -L /usr/local/lib -lcryptopp -lm (I'm not sure if "-lm" is st

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-16 Thread Samyukta Yagati
I think I'm still misunderstanding the intention of the command. On Thursday, September 16, 2021 at 3:56:20 PM UTC-7 Jeffrey Walton wrote: > > 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/libcrypt

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-16 Thread Jeffrey Walton
On Thu, Sep 16, 2021 at 6:22 PM Samyukta Yagati wrote: > > As a follow up: I tried running > > >> 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

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-16 Thread Samyukta Yagati
As a follow up: I tried running >> 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 c

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-16 Thread Samyukta Yagati
I'm new to using clang, so to clarify: in my case, I should try "clang++ -g2 -O3 -I /usr/local/include cryptopp -Wl,-L" (where cryptopp is a subdirectory of include)? Also, is "-Wl,/usr/local/lib -o test.exe" intended to be shorthand for "clang++ -g2 -O3 -Wl,/usr/local/lib -o test.exe"? (and, r

Re: [cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-15 Thread Jeffrey Walton
On Wed, Sep 15, 2021 at 6:39 PM Samyukta Yagati wrote: > > I installed Crypto++ from source as follows: > > git clone https://github.com/weidai11/cryptopp.git > cd cryptopp > Uncommented the CXX flag line in GNUmakefile that adds "-stdlib=libc++" > because I am using XCode. > make -j 8 (8 = value

[cryptopp-users] Linking issue on MacOS Catalina (using XCode)

2021-09-15 Thread Samyukta Yagati
I installed Crypto++ from source as follows: 1. git clone https://github.com/weidai11/cryptopp.git 2. cd cryptopp 3. Uncommented the CXX flag line in GNUmakefile that adds "-stdlib=libc++" because I am using XCode. 4. make -j 8 (8 = value of $(nproc) on my machine if it were linux