cmake compile error "relocation R_X86_64_32 against` .rodata 'can not be used when making a shared object "solution

https://blog.csdn.net/u010312436/article/details/52486811

Add the following line CMakeLists.txt:
add_definitions (-fPIC)

Guess you like

Origin blog.csdn.net/chengde6896383/article/details/93737256