完整的参数是-Wl,-rpath=路径(-Wl,-rpath,路径)
注意l是小写,两个 - 不能少,逗号不能少
报错1:g++: error: unrecognized command line option ‘-WL,-rpath=路径’
L大写导致的
报错2:/usr/bin/ld: cannot find rpath=路径: No such file or directory
rpath前没加 -(减号) 导致
完整的参数是-Wl,-rpath=路径(-Wl,-rpath,路径)
注意l是小写,两个 - 不能少,逗号不能少
报错1:g++: error: unrecognized command line option ‘-WL,-rpath=路径’
L大写导致的
报错2:/usr/bin/ld: cannot find rpath=路径: No such file or directory
rpath前没加 -(减号) 导致