wondertrader / wtpy

wtpy是基于wondertrader为底层的针对python的子框架
MIT License
921 stars 259 forks source link

undefined symbol: _ZN3otp14HftStraBaseCtx11getOrderTagEj #7

Closed swordkee closed 3 years ago

swordkee commented 3 years ago

ubuntu 20.04 $ ldd -r /usr/local/lib/python3.8/dist-packages/wtpy/wrapper/linux/libWtPorter.so linux-vdso.so.1 (0x00007ffff7c72000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4f61490000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4f6146d000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4f61280000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4f61131000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4f61110000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4f60f10000) /lib64/ld-linux-x86-64.so.2 (0x00007f4f616db000) undefined symbol: _ZN3otp14HftStraBaseCtx11getOrderTagEj (/usr/local/lib/python3.8/dist-packages/wtpy/wrapper/linux/libWtPorter.so)

$ c++filt _ZN3otp14HftStraBaseCtx11getOrderTagEj otp::HftStraBaseCtx::getOrderTag(unsigned int)

skyang2009 commented 3 years ago

wtpy/wrapper/linux/ 里面的so动态库要用自己编译的才行,不能用git上面的版本,自己编译的so文件在在/root/wondertrader/src/build_Debug/bin/WtPorter

wondertrader commented 3 years ago

gcc里面对于inline的函数的处理和vs不大一样,这个wondertrader里做了修正,你可以用wondertrader里的代码自己编译一下看看

wondertrader commented 3 years ago

wtpy/wrapper/linux/ 里面的so动态库要用自己编译的才行,不能用git上面的版本,自己编译的so文件在在/root/wondertrader/src/build_Debug/bin/WtPorter

好的,谢谢,那我先关掉问题了啊