编译报错问题汇总

 

1. error: undefined reference to 'dlsym':

solution:  target_link_libraries(target -lpthread -ldl)

https://www.cnblogs.com/midnightcat/p/12704247.html

c++ - Undefined reference to 'dlsym' - Stack Overflow

2. .dynsym local symbol at index 3 (>= sh_info of 3)

solution: sudo ln -sf /usr/bin/x86_64-linux-gnu-ld.gold /usr/bin/ld

https://blog.csdn.net/qq_32640443/article/details/123479850?spm=1001.2014.3001.5501

你可能感兴趣的:(LeetCode刷题,c语言,开发语言,linux,cpp,c++)