我已经用c ++编写了一个代码,该代码利用wigxjpf-1.9包来计算一些威格纳符号。要编译代码,我使用g ++,然后键入
g++ file_name.cpp -o my_file -I ~/path_to_file/wigxjpf-1.9/inc/ -I /usr/local/include -L ~/path_to_file/wigxjpf-1.9/lib/ -lwigxjpf -lm -lgsl -lgslcblas
它有效。
现在,我正在尝试以使其可以并行工作的方式对其进行修改。为此,我使用openmp。我的问题是,当我尝试编译文件时。我输入
g++-9 -fopenmp file_name.cpp -o my_file -I ~/path_to_file/wigxjpf-1.9/inc/ -I /usr/local/include -L ~/path_to_file/wigxjpf-1.9/lib/ -lwigxjpf -lm -lgsl -lgslcblas
但是现在出现以下错误:
ld: library not found for -lgsl
collect2: error: ld returned 1 exit status
我输入的内容有误吗?
请告诉我是否需要更多详细信息来回答我的问题。