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:

  1. update ld_library_path /home/username/where/your/directories/are/lib
  2. in compile line add: -wl,-rpath,/home/username/where/your/directories/are/lib

hth


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -