Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: _ZN3otp14HftStraBaseCtx11getOrderTagEj #7

Closed
swordkee opened this issue Feb 16, 2021 · 3 comments
Closed

undefined symbol: _ZN3otp14HftStraBaseCtx11getOrderTagEj #7

swordkee opened this issue Feb 16, 2021 · 3 comments

Comments

@swordkee
Copy link

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
Copy link

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

@wondertrader
Copy link
Owner

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

@wondertrader
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants