how to add c++ library to compiler on a public linux/unix cluster -
i'm using school public cluster , want include c++ library paths c++ compiler. i've installed boost, armadillo , on. after make them, program told me add header path c++ compiler. i'm in public cluster, how can that? not have sudo or yum authorities.
-i/home/username/where/your/directories/are/include
headers
-l/home/username/where/your/directories/are/lib
libraries
from here, if want run executables, have 2 options:
- update
ld_library_path
/home/username/where/your/directories/are/lib
- in compile line add:
-wl,-rpath,/home/username/where/your/directories/are/lib
hth
Comments
Post a Comment