¿ªÔÆÌåÓý

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

Re: g++ command for including the proper libraries


 

I am not following your logic here.

TWS API is a language independent request/response message protocol that serializes requests made by your client into messages that are sent through a network socket socket to TWS/IBGW and de-serializes any response messages. IBKR provides implementations of this protocol for several programming languages, including C++. So there are no derivatives and I have no idea what you think we are all settling for.

All IBKR client facing software (TWS, IBGW, the Client Portal API gateway) is implemented in Java. In V10 of TWS/IBGW and TWS API, the data type for various size/quantity fields was changed from double to a more stable Decimal type. Java, and many other languages, have a built-in Decimal datatype, but C++ does not.

IBKR opted to base the C++ TWS API adapter implementation of Decimal on the "Intel? Decimal Floating-Point Math Library", as you probably have read in the . The TWS API release ships with various binary versions of that library, but not all versions for all environments. As your error log suggests, your g++ environment is not happy with the ones it finds. So you have to locate or compile a compatible version yourselves, or use a compile environment that is happy with one of the provided versions.

If you search for C++ in our archives, you will find several posts that talk about where you can find a suitable binary version or which open-source version you can use to make your own library..

´³¨¹°ù²µ±ð²Ô



On Wed, Aug 9, 2023 at 01:31 PM, <blydon12@...> wrote:
I've had no problems using g++ on windows for C++. I am just trying to see if anyone else has tried doing this successfully rather than using TwsApiL0 because I imagine the API was written in C++ to be used directly regardless of compiler or system. Otherwise, what are they doing over at Interactive Brokers? It doesn't make sense to me that I have to use some derivation of the API, and it is strange that everyone on here seems to be settling for that. With that being said, do you have any advice on how to link directly to the TWS API via g++ on windows? Any technical advice would be appreciated.

Join [email protected] to automatically receive all group messages.