|
命令行中若同时用 -L和-Wl,-rpath,表示库文件的搜索路径,编译没问题可运行时给出如下错误:
error while loading shared libraries: libaaaa.so.0: cannot map zero-fill pages: Cannot allocate memory
若只用-L表示库文件的搜索路径,编译也没问题,可运行时出现错误如下:
error while loading shared libraries: libaaaa.so.0: cannot open shared object file: No such file or directory
请问这个问题怎么解决?谢谢 |
|