Bloomberg C++ API
I'm struggling for two days to make the Bloomberg C++ API working in my Qt application, but I literally have not found anything. I use Qt creator and Bloomberg does not provide support for this IDE (although I'm not sure it is a Qt issue).
I have downloaded all the header files and include them in my project.
I have then followed the example provided alongside the source code.
When compiling I get tones of error, all of them in the source code of the API (not in my code) but mainly one relative to a ternary operand:
And here is the debugger message:
Could you help me please?
This is not an IDE issue, and not a Qt issue. Your compiler is telling you that
g_blpapiFunctionEntries.FUNCNAMEis not compatible with
BLPAPI_UNSUPPORTED_CALL(FUNCNAME). See http://stackoverflow.com/questions/9661952/why-in-conditional-operator-second-and-third-operands-must-have-the-same-t for more info.
Does Bloomberg support your compiler?
Thank you for clarifying the debugger message.
I've been using MinGW so far, I haven't tried with another compiler. I will try with MSVC compiler and come back with some feedback.