I’m currently trying to compile a C++ source file which use openssl headers, but the compiler uses system openssl headers located in /usr/include/openssl and I would like it uses the /usr/local/openssl/1.0.1c/include/openssl include path. I might have to give the “-I” flag pointing to the last path but it keeps the system one.
g++ -o src/base64.o -c -O3 -arch x86_64 -Iinclude/cryptoplus -I/usr/local/openssl/1.0.1c/include/openssl src/base64.cpp
My environment variables seem to not force using the /usr/include/openssl include dir and I’m working on OSX 10.8, sorry if it’s novice question but it’s kind disturbing.
In advance, thank you!
My bad, I was very tired ! The openssl include path wasn’t right, I needed to specify
without the openssl folder.
The include calls the header file inside the openssl folder
Thanks for your comments.