To link to a dynamic library, besides the
-L <path_to_lib>and
-l<name_of_lib>, also remember to use
-Bdynamic! It is because Jaguar is using pgcc for parallel programs.
It took me at least 5 hours to find out. Google rocks...
But Jaguar compute nodes cannot load the dynamic library. So look at
this page for linking to static library.
No comments:
Post a Comment