rsnt_translations
56,435
edits
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}} | ||
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 file2.o -llapack -lblas}} | ||
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. |