Skip to content
Snippets Groups Projects
Commit 0484b67f authored by Mathieu Peybernes's avatar Mathieu Peybernes
Browse files

Example for ldd

parent e73cefe9
No related branches found
No related tags found
No related merge requests found
......@@ -239,9 +239,13 @@ prepend_path("INCLUDE","/ssoft/spack/arvine/v1/opt/spack/linux-rhel7-skylake_avx
$ gcc -fPIC -c prog1.c prog2.c prog3.c ... progn.c
$ gcc -o libmylib.so -shared prog1.o prog2.o prog3.o ... progn.o
\end{consoleoutput}
\item Example
\item To print shared library dependencies, use \cmd{ldd}; example:
\begin{consoleoutput}
$ ldd ....
$ ldd exec
linux-vdso.so.1 => (0x00007fff9e59b000)
libsaxpyC.so => /home/peyberne/Codes/SCM-exercises/compilationWithLibrary/libsaxpyC.so (0x00002b2253957000)
libc.so.6 => /lib64/libc.so.6 (0x00002b2253b59000)
/lib64/ld-linux-x86-64.so.2 (0x00002b2253733000)
\end{consoleoutput}
\end{itemize}
\end{frame}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment