Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. gcc -c -fPIC -o lib<something>.o -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux whatever.c
- 2. gcc -shared -o lib<something>.so lib<something>.o -Wl,-rpath,/usr/local/lib -L/usr/local/lib -l<library to link>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement