Installing software in your home directory/fr: Difference between revisions

Jump to navigation Jump to search
Created page with "Une fois le module chargé, vous pouvez modifier les liens établis au cours du processus de ''build'' pour inclure la librairie, par exemple {{Commande|gcc -o my_prog file1.o..."
No edit summary
(Created page with "Une fois le module chargé, vous pouvez modifier les liens établis au cours du processus de ''build'' pour inclure la librairie, par exemple {{Commande|gcc -o my_prog file1.o...")
Line 23: Line 23:
{{Commande|module load library_name/x.y.z}}
{{Commande|module load library_name/x.y.z}}


With the module loaded, you can now modify the link phase of your build process to include the library, for example
Une fois le module chargé, vous pouvez modifier les liens établis au cours du processus de ''build'' pour inclure la librairie, par exemple
{{Command|gcc -o my_prog file1.o file2.o -lnetcdf}}
{{Commande|gcc -o my_prog file1.o file2.o -llapack -lblas}}
if I wanted to link with the NetCDF library.
pour lier les librairies LAPACK et BLAS.


The link line needs to contain <tt>-l</tt> prefixed to the library name, which will be a file that has the extension <tt>.a</tt> or <tt>.so</tt>. The documentation for the library will typically inform you of the name of this file and, if there is more than one such file, the order in which they should be linked.
The link line needs to contain <tt>-l</tt> prefixed to the library name, which will be a file that has the extension <tt>.a</tt> or <tt>.so</tt>. The documentation for the library will typically inform you of the name of this file and, if there is more than one such file, the order in which they should be linked.
rsnt_translations
56,430

edits

Navigation menu