原因是编译的时候使用了  -c  

g++ -o libderive.so -g -shared -fPIC -c  reflection_derive.cpp 

把-c去掉就ok,查了半天才搞定,太杯具了~~ ,改成:

g++ -o libderive.so -g -shared -fPIC reflection_derive.cpp

相关文章:

  • 2021-07-06
  • 2021-06-30
  • 2021-12-12
  • 2021-09-06
  • 2022-02-20
  • 2021-06-20
  • 2022-01-18
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-06-23
相关资源
相似解决方案