Skip to content

Instantly share code, notes, and snippets.

@domiyanyue
Last active May 9, 2020 20:52
Show Gist options
  • Save domiyanyue/8e15890c2ce797b10ad766e8b58aa3d4 to your computer and use it in GitHub Desktop.
Save domiyanyue/8e15890c2ce797b10ad766e8b58aa3d4 to your computer and use it in GitHub Desktop.
use rpath to build
g++ main.o -L. -lmy_math -o a.out -Wl,-rpath,/home/cpp_tutorial/static_library
./a.out
0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment