¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

TestCppClient doesn't compile for Ubuntu 20.04 (focal)


 

Running make on the newly-downloaded TWS SDK produces the following:

g++ -pthread -Wall -Wno-switch -Wpedantic -Wno-unused-function -std=c++11 -I../../../source/cppclient/client -I../../../source/cppclient ../../../source/cppclient/client/*.cpp ./*.cpp ../../../source/cppclient/client/lib/libbid.a -oTestCppClientStatic
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
/home/linuxbrew/.linuxbrew/bin/ld: BFD (GNU Binutils) 2.37 assertion fail reloc.c:8489
../../../source/cppclient/client/lib/libbid.a(bid64_string.o):bid64_string.c:(.pdata+0x0): dangerous relocation: make: *** [makefile:11: TestCppClientStatic] Error 1

I've seen a few threads (i.e. this and ) that recommend swapping the IBKR bundled libbid.a or libbid.so with libintelrdfpmath-dev. The only problem is that that library isn't available for Ubuntu 20.04 (focal). Is there any way I can build with something else, or with the attached libraries?


 

API_Version=10.19.01
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0


 

This fix works but only if I upgrade to Ubuntu 22.04.3 LTS. libintelrdfpmath-dev isn't available for older versions of Ubuntu.


 

You should be able to download the code from and build the library yourself.

I needed to do this for a Debian Buster system I'm running at it was rather straightforward.