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
Link error #682
Comments
Hi! I have the same error. Have you solved this? |
Yes. But I don't remember the exact details. |
I think you can also use the environment variables env CFLAGS='-fPIC' CXXFLAGS='-fPIC' cmake -DCMAKE_BUILD_TYPE=Release .. . |
Thank you! |
Thank You, I solve that. |
hi, Could you please advise where to add the env variable? many thanks! |
You need to set the environment variables before you create the build system. On macOS and Linux the following commands should work: git clone https://github.com/jbeder/yaml-cpp.git
cd yaml-cpp
env CFLAGS='-fPIC' CXXFLAGS='-fPIC' cmake -DCMAKE_BUILD_TYPE=Release -Bbuild
cmake --build build -v |
When linking against yaml-cpp I got following error:
Adding
-fPIC
option to yaml-cppCMakeLists.txt
and reinstalling it solved the problem.The text was updated successfully, but these errors were encountered: