开云体育

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

Visual Studio 2022 and C++ TWS API 10.32


 

Visual Studio 2022 and C++ TWS API 10.32
?
I am trying to compile this but getting some errors.
?
Has anyone been able to get this to work?
?
?
1 Project Compiled fine:
?
1>TwsSocketClientStatic.vcxproj -> E:\Creation\TWS_API\samples\Cpp\TestCppClient\x64\Debug\TwsSocketClientStatic.lib
1>Done building project "TwsSocketClientStatic.vcxproj".
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
========== Rebuild completed at 5:17 PM and took 52.541 seconds ==========
?
2 Project Compiled fine:
?
ld started at 5:29 PM...
1>------ Build started: Project: TestCppClientStatic, Configuration: Debug x64 ------
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(531,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (TwsSocketClient.vcxproj). ?This can lead to incorrect clean and rebuild behavior.
1>Done building project "TwsSocketClientStatic.vcxproj".
1>LINK : fatal error LNK1104: cannot open file 'libbid.lib'
1>Done building project "TestCppClientStatic.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Build completed at 5:29 PM and took 00.411 seconds ==========
?
What does this linking error even mean?
?
Anyone got a walk through to get a basic compile to .EXE ?


 

HERE IS THE FULL COMPILE FOR BOTH STATIC PROJECTS IN THE SOLUTION
?
Rebuild started at 5:33 PM...
1>------ Rebuild All started: Project: TwsSocketClientStatic, Configuration: Debug x64 ------
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(531,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (TwsSocketClient.vcxproj). ?This can lead to incorrect clean and rebuild behavior.
1>ContractCondition.cpp
1>Decimal.cpp
1>E:\Creation\TWS_API\source\cppclient\client\Decimal.cpp(60,16): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\Decimal.cpp(74,19): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>DefaultEWrapper.cpp
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(7,101): warning C4100: 'attribs': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(7,76): warning C4100: 'price': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(7,62): warning C4100: 'field': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(7,43): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(8,76): warning C4100: 'size': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(8,61): warning C4100: 'field': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(8,42): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(10,89): warning C4100: 'undPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(10,75): warning C4100: 'theta': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(10,62): warning C4100: 'vega': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(10,48): warning C4100: 'gamma': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(10,29): warning C4100: 'pvDividend': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(10,12): warning C4100: 'optPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(9,126): warning C4100: 'delta': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(9,107): warning C4100: 'impliedVol': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(9,88): warning C4100: 'tickAttrib': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(9,74): warning C4100: 'tickType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(9,55): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(11,80): warning C4100: 'value': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(11,63): warning C4100: 'tickType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(11,44): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(12,91): warning C4100: 'value': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(12,62): warning C4100: 'tickType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(12,43): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(14,112): warning C4100: 'dividendsToLastTradeDate': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(14,89): warning C4100: 'dividendImpact': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(14,61): warning C4100: 'futureLastTradeDate': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(14,32): warning C4100: 'holdDays': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(14,12): warning C4100: 'totalDividends': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(13,108): warning C4100: 'formattedBasisPoints': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(13,76): warning C4100: 'basisPoints': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(13,59): warning C4100: 'tickType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(13,40): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(17,76): warning C4100: 'mktCapPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(17,60): warning C4100: 'whyHeld': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(17,31): warning C4100: 'clientId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(17,12): warning C4100: 'lastFillPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(16,67): warning C4100: 'parentId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(16,55): warning C4100: 'permId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(16,31): warning C4100: 'avgFillPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(16,13): warning C4100: 'remaining': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(15,88): warning C4100: 'filled': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(15,72): warning C4100: 'status': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(15,44): warning C4100: 'orderId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(18,42): warning C4100: 'orderId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(20,61): warning C4100: 'lastError': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(20,52): warning C4100: 'str': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(23,52): warning C4100: 'accountName': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(23,23): warning C4100: 'currency': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(22,85): warning C4100: 'val': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(22,61): warning C4100: 'key': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(26,68): warning C4100: 'accountName': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(26,36): warning C4100: 'realizedPNL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(26,14): warning C4100: 'unrealizedPNL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(25,54): warning C4100: 'averageCost': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(25,34): warning C4100: 'marketValue': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(25,14): warning C4100: 'marketPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(24,74): warning C4100: 'position': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(24,56): warning C4100: 'contract': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(27,60): warning C4100: 'timeStamp': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(28,61): warning C4100: 'accountName': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(29,44): warning C4100: 'orderId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(30,74): warning C4100: 'contractDetails': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(30,44): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(31,78): warning C4100: 'contractDetails': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(31,48): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(32,47): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(33,90): warning C4100: 'execution': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(33,63): warning C4100: 'contract': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(33,40): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(34,43): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(35,103): warning C4100: 'advancedOrderRejectJson': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(35,71): warning C4100: 'errorString': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(35,41): warning C4100: 'errorCode': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(35,33): warning C4100: 'id': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(37,24): warning C4100: 'size': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(37,9): warning C4100: 'price': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(36,84): warning C4100: 'side': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(36,69): warning C4100: 'operation': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(36,55): warning C4100: 'position': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(36,47): warning C4100: 'id': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(39,50): warning C4100: 'isSmartDepth': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(39,39): warning C4100: 'size': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(39,24): warning C4100: 'price': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(39,11): warning C4100: 'side': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(38,103): warning C4100: 'operation': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(38,86): warning C4100: 'marketMaker': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(38,57): warning C4100: 'position': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(38,49): warning C4100: 'id': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(40,117): warning C4100: 'originExch': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(40,85): warning C4100: 'newsMessage': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(40,57): warning C4100: 'msgType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(40,46): warning C4100: 'msgId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(41,59): warning C4100: 'accountsList': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(42,76): warning C4100: 'cxml': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(42,44): warning C4100: 'pFaDataType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(43,65): warning C4100: 'bar': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(43,47): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(44,104): warning C4100: 'endDateStr': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(44,71): warning C4100: 'startDateStr': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(44,45): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(45,60): warning C4100: 'xml': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(48,24): warning C4100: 'legsStr': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(47,83): warning C4100: 'projection': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(47,53): warning C4100: 'benchmark': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(47,24): warning C4100: 'distance': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(46,79): warning C4100: 'contractDetails': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(46,50): warning C4100: 'rank': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(46,39): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(49,42): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(51,38): warning C4100: 'count': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(51,29): warning C4100: 'wap': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(51,13): warning C4100: 'volume': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(50,107): warning C4100: 'close': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(50,95): warning C4100: 'low': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(50,82): warning C4100: 'high': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(50,69): warning C4100: 'open': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(50,56): warning C4100: 'time': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(50,44): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(52,40): warning C4100: 'time': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(53,74): warning C4100: 'data': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(53,48): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(54,85): warning C4100: 'deltaNeutralContract': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(54,50): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(55,44): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(56,59): warning C4100: 'marketDataType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(56,48): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(57,65): warning C4100: 'commissionReport': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(58,112): warning C4100: 'avgCost': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(58,95): warning C4100: 'position': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(58,77): warning C4100: 'contract': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(58,52): warning C4100: 'account': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(60,147): warning C4100: 'currency': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(60,121): warning C4100: 'value': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(60,97): warning C4100: 'tag': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(60,69): warning C4100: 'account': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(60,43): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(61,46): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(62,60): warning C4100: 'apiData': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(63,78): warning C4100: 'errorText': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(63,45): warning C4100: 'isSuccessful': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(64,71): warning C4100: 'groups': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(64,45): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(65,74): warning C4100: 'contractInfo': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(65,48): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(66,95): warning C4100: 'xyzChallange': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(66,67): warning C4100: 'apiData': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(67,85): warning C4100: 'errorText': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(67,52): warning C4100: 'isSuccessful': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(69,152): warning C4100: 'avgCost': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(69,140): warning C4100: 'pos': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(69,122): warning C4100: 'contract': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(69,95): warning C4100: 'modelCode': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(69,68): warning C4100: 'account': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(69,42): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(70,45): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(71,181): warning C4100: 'currency': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(71,155): warning C4100: 'value': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(71,131): warning C4100: 'key': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(71,101): warning C4100: 'modelCode': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(71,73): warning C4100: 'account': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(71,47): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(72,50): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(74,99): warning C4100: 'strikes': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(74,62): warning C4100: 'expirations': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(74,21): warning C4100: 'multiplier': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(73,139): warning C4100: 'tradingClass': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(73,103): warning C4100: 'underlyingConId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(73,89): warning C4100: 'exchange': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(73,63): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(75,66): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(76,85): warning C4100: 'tiers': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(76,43): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(77,66): warning C4100: 'familyCodes': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(78,88): warning C4100: 'contractDescriptions': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(78,41): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(79,85): warning C4100: 'depthMktDataDescriptions': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(80,175): warning C4100: 'extraData': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(80,146): warning C4100: 'headline': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(80,116): warning C4100: 'articleId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(80,83): warning C4100: 'providerCode': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(80,53): warning C4100: 'timeStamp': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(80,36): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(81,76): warning C4100: 'theMap': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(81,43): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(82,103): warning C4100: 'snapshotPermissions': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(82,86): warning C4100: 'bboExchange': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(82,58): warning C4100: 'minTick': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(82,41): warning C4100: 'tickerId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(83,70): warning C4100: 'newsProviders': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(84,86): warning C4100: 'articleText': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(84,54): warning C4100: 'articleType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(84,39): warning C4100: 'requestId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(85,160): warning C4100: 'headline': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(85,130): warning C4100: 'articleId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(85,97): warning C4100: 'providerCode': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(85,72): warning C4100: 'time': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(85,42): warning C4100: 'requestId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(86,61): warning C4100: 'hasMore': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(86,45): warning C4100: 'requestId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(87,67): warning C4100: 'headTimestamp': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(87,41): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(88,75): warning C4100: 'data': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(88,41): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(89,71): warning C4100: 'bar': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(89,53): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(90,82): warning C4100: 'exchange': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(90,56): warning C4100: 'conid': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(90,45): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(91,83): warning C4100: 'exchange': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(91,57): warning C4100: 'conid': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(91,46): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(92,87): warning C4100: 'priceIncrements': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(92,38): warning C4100: 'marketRuleId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(93,84): warning C4100: 'realizedPnL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(93,62): warning C4100: 'unrealizedPnL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(93,45): warning C4100: 'dailyPnL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(93,31): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(94,123): warning C4100: 'value': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(94,103): warning C4100: 'realizedPnL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(94,81): warning C4100: 'unrealizedPnL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(94,64): warning C4100: 'dailyPnL': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(94,52): warning C4100: 'pos': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(94,37): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(95,97): warning C4100: 'done': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(95,85): warning C4100: 'ticks': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(95,43): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(96,109): warning C4100: 'done': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(96,97): warning C4100: 'ticks': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(96,49): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(97,105): warning C4100: 'done': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(97,93): warning C4100: 'ticks': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(97,47): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,193): warning C4100: 'specialConditions': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,164): warning C4100: 'exchange': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,129): warning C4100: 'tickAttribLast': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,101): warning C4100: 'size': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,86): warning C4100: 'price': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,73): warning C4100: 'time': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,56): warning C4100: 'tickType': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(98,45): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(99,156): warning C4100: 'tickAttribBidAsk': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(99,123): warning C4100: 'askSize': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(99,106): warning C4100: 'bidSize': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(99,88): warning C4100: 'askPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(99,71): warning C4100: 'bidPrice': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(99,58): warning C4100: 'time': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(99,44): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(100,73): warning C4100: 'midPoint': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(100,60): warning C4100: 'time': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(100,46): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(101,70): warning C4100: 'orderId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(101,56): warning C4100: 'clientId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(101,44): warning C4100: 'permId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(102,102): warning C4100: 'orderState': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(102,77): warning C4100: 'order': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(102,54): warning C4100: 'contract': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(104,66): warning C4100: 'text': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(104,40): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(105,65): warning C4100: 'dataJson': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(105,39): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(106,66): warning C4100: 'dataJson': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(106,40): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(107,186): warning C4100: 'sessions': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(107,138): warning C4100: 'timeZone': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(107,106): warning C4100: 'endDateTime': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(107,72): warning C4100: 'startDateTime': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(107,46): warning C4100: 'reqId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(108,62): warning C4100: 'whiteBrandingId': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\DefaultEWrapper.cpp(108,36): warning C4100: 'reqId': unreferenced formal parameter
1>EMutex.cpp
1>EDecoder.cpp
1>E:\Creation\TWS_API\source\cppclient\client\EDecoder.cpp(1797,17): warning C4244: 'initializing': conversion from '__int64' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EDecoder.cpp(2208,81): warning C4100: 'endPtr': unreferenced formal parameter
1>E:\Creation\TWS_API\source\cppclient\client\EDecoder.cpp(2644,17): warning C4244: 'initializing': conversion from '__int64' to 'int', possible loss of data
1>EMessage.cpp
1>EOrderDecoder.cpp
1>EReader.cpp
1>E:\Creation\TWS_API\source\cppclient\client\EReader.cpp(186,15): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EReader.cpp(232,43): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data
1>EClientSocket.cpp
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(116,16): warning C4244: 'argument': conversion from 'SOCKET' to 'const _Ty', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(116,16): warning C4244: ? ? ? ? with
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(116,16): warning C4244: ? ? ? ? [
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(116,16): warning C4244: ? ? ? ? ? ? _Ty=int
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(116,16): warning C4244: ? ? ? ? ]
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(128,27): warning C4244: 'argument': conversion from 'int' to 'u_short', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(109,29): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(197,16): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClientSocket.cpp(268,35): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
1>EReaderOSSignal.cpp
1>ESocket.cpp
1>E:\Creation\TWS_API\source\cppclient\client\ESocket.cpp(67,35): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
1>executioncondition.cpp
1>MarginCondition.cpp
1>OperatorCondition.cpp
1>OrderCondition.cpp
1>PercentChangeCondition.cpp
1>PriceCondition.cpp
1>SoftDollarTier.cpp
1>StdAfx.cpp
1>TimeCondition.cpp
1>Utils.cpp
1>VolumeCondition.cpp
1>EClient.cpp
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(115,51): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(115,33): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(324,40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(324,38): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(594,40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(594,38): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1385,36): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1385,34): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1456,41): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1456,39): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1742,40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1742,38): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1767,45): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1767,43): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1780,54): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1780,52): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1967,45): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(1967,43): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
1>E:\Creation\TWS_API\source\cppclient\client\EClient.cpp(3989,28): warning C4127: conditional expression is constant
1>TwsSocketClientStatic.vcxproj -> E:\Creation\TWS_API\samples\Cpp\TestCppClient\x64\Debug\TwsSocketClientStatic.lib
1>Done building project "TwsSocketClientStatic.vcxproj".
2>------ Rebuild All started: Project: TestCppClientStatic, Configuration: Debug x64 ------
2>StdAfx.cpp
2>AccountSummaryTags.cpp
2>AvailableAlgoParams.cpp
2>ContractSamples.cpp
2>Main.cpp
2>OrderSamples.cpp
2>ScannerSubscriptionSamples.cpp
2>TestCppClient.cpp
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(1759,42): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
2>(compiling source file '/TestCppClient.cpp')
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(1759,27): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
2>(compiling source file '/TestCppClient.cpp')
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(1771,70): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
2>(compiling source file '/TestCppClient.cpp')
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(1771,41): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data
2>(compiling source file '/TestCppClient.cpp')
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2040,9): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2040,9):
2> ? ?consider using '%zu' in the format string
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2050,9): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2050,9):
2> ? ?consider using '%zu' in the format string
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2060,9): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2060,9):
2> ? ?consider using '%zu' in the format string
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2066,10): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2066,10):
2> ? ?consider using '%zu' in the format string
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2078,9): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2078,9):
2> ? ?consider using '%zu' in the format string
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2105,9): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2105,9):
2> ? ?consider using '%zu' in the format string
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2123,9): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2123,9):
2> ? ?consider using '%zu' in the format string
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2179,9): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 2 has type 'unsigned __int64'
2>(compiling source file '/TestCppClient.cpp')
2> ? ?E:\Creation\TWS_API\samples\Cpp\TestCppClient\TestCppClient.cpp(2179,9):
2> ? ?consider using '%zu' in the format string
2>Utils.cpp
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\Utils.cpp(22,16): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
2>(compiling source file '/Utils.cpp')
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\Utils.cpp(33,52): warning C4267: '=': conversion from 'size_t' to 'uint8_t', possible loss of data
2>(compiling source file '/Utils.cpp')
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\Utils.cpp(50,44): warning C4267: '=': conversion from 'size_t' to 'uint8_t', possible loss of data
2>(compiling source file '/Utils.cpp')
2>Generating Code...
2>LINK : fatal error LNK1104: cannot open file 'libbid.lib'
2>Done building project "TestCppClientStatic.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
========== Rebuild completed at 5:34 PM and took 01:01.485 minutes ==========


 

I tried removing the LIBBID.LIB now I get a linker method errror
?
?
2>Generating Code...
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_add referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::add(unsigned __int64,unsigned __int64)" (?add@DecimalFunctions@@SA_K_K0@Z)
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_sub referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::sub(unsigned __int64,unsigned __int64)" (?sub@DecimalFunctions@@SA_K_K0@Z)
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_mul referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::mul(unsigned __int64,unsigned __int64)" (?mul@DecimalFunctions@@SA_K_K0@Z)
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_div referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::div(unsigned __int64,unsigned __int64)" (?div@DecimalFunctions@@SA_K_K0@Z)
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_from_string referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::stringToDecimal(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?stringToDecimal@DecimalFunctions@@SA_KV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_to_string referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl DecimalFunctions::decimalToString(unsigned __int64)" (?decimalToString@DecimalFunctions@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K@Z)
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___bid64_to_binary64 referenced in function "public: static double __cdecl DecimalFunctions::decimalToDouble(unsigned __int64)" (?decimalToDouble@DecimalFunctions@@SAN_K@Z)
2>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol ___binary64_to_bid64 referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::doubleToDecimal(double)" (?doubleToDecimal@DecimalFunctions@@SA_KN@Z)
2>E:\Creation\TWS_API\samples\Cpp\TestCppClient\Debug\TestCppClientStatic.exe : fatal error LNK1120: 8 unresolved externals
2>Done building project "TestCppClientStatic.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
========== Rebuild completed at 6:03 PM and took 41.135 seconds ==========
?
?


 

The error is very clear in your first post. You have to link in the library "libbid.lib"
?
Somewhere in the API docs or README files (I forget where) it tells you that you have to compile your own version of LIBBID.LIB and tell your compiler where you located it.
?
This is a decimal library that is required for accurate financial numbers. There are several ways to get it.
?
The two I prefer:
?
?- compile yourself from source found here : ?
?
?- as you are using Visual Studio, the simplest way is to use VCPKG and get that library with the same name.
?
I think if you search libbid.lib on this group you will also find similar topics with answers.


 

TWS API ships with file source/CppClient/Intel_lib_build.txt that describes the libbid build process.

闯ü谤驳别苍

?

?
On Wed, Nov 6, 2024 at 07:13 PM, David Armour wrote:

The error is very clear in your first post. You have to link in the library "libbid.lib"
?
Somewhere in the API docs or README files (I forget where) it tells you that you have to compile your own version of LIBBID.LIB and tell your compiler where you located it.
?
This is a decimal library that is required for accurate financial numbers. There are several ways to get it.
?
The two I prefer:
?
?- compile yourself from source found here : ?
?
?- as you are using Visual Studio, the simplest way is to use VCPKG and get that library with the same name.
?
I think if you search libbid.lib on this group you will also find similar topics with answers.


 

Okay I followed the TEXT document (NOT FOUND IN THE BETA DONWLOAD) .
?
I was able to use NMAKE and compile the floating point library called (libbid.lib)
?
I then placed the libbid.lib in my TestCppClientStatic folder and hit rebuild.
?
Now the error message is different:
?
?
Build started at 10:19 PM...
1>------ Build started: Project: TestCppClientStatic, Configuration: Debug x64 ------
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __bid64_add referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::add(unsigned __int64,unsigned __int64)" (?add@DecimalFunctions@@SA_K_K0@Z)
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __bid64_sub referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::sub(unsigned __int64,unsigned __int64)" (?sub@DecimalFunctions@@SA_K_K0@Z)
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __bid64_mul referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::mul(unsigned __int64,unsigned __int64)" (?mul@DecimalFunctions@@SA_K_K0@Z)
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __bid64_div referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::div(unsigned __int64,unsigned __int64)" (?div@DecimalFunctions@@SA_K_K0@Z)
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __bid64_from_string referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::stringToDecimal(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?stringToDecimal@DecimalFunctions@@SA_KV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __bid64_to_string referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl DecimalFunctions::decimalToString(unsigned __int64)" (?decimalToString@DecimalFunctions@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K@Z)
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __bid64_to_binary64 referenced in function "public: static double __cdecl DecimalFunctions::decimalToDouble(unsigned __int64)" (?decimalToDouble@DecimalFunctions@@SAN_K@Z)
1>TwsSocketClientStatic.lib(Decimal.obj) : error LNK2019: unresolved external symbol __binary64_to_bid64 referenced in function "public: static unsigned __int64 __cdecl DecimalFunctions::doubleToDecimal(double)" (?doubleToDecimal@DecimalFunctions@@SA_KN@Z)
1>libbid.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>E:\Creation\TWS_API\samples\Cpp\TestCppClient\x64\Debug\TestCppClientStatic.exe : fatal error LNK1120: 8 unresolved externals
1>Done building project "TestCppClientStatic.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Build completed at 10:19 PM and took 00.673 seconds ==========
?
?
?
?
The compiler finds the library but a few methods are missing from the library
?
Where did I go wrong?
?
?


 

On Thu, Nov 7, 2024 at 07:26 PM, Marluv wrote:

check your architecture this might be an x64 vs x86 issue. Don't remember much about C++ but this might be a libbid.lib architecture issue.


 

OKAY I FIXED IT.
?
?WHO EVER READS THIS AND WANTS TO COMPILE WITH VS 2022 AND 10.32
?
HERE ARE THE STEPS I USED TO GET IT TO WORK
?
1. Try compiling the "TestCppClient\Debug\TestCppClientStatic.exe "? first. I think all libs are embedded in the .EXE. Bigger file but who cares.
?
2. YOU MUST USE ONLY THE VISUAL STUDIO COMMAND
%comspec% /k "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
?
TO COMPILE THE (libbid.lib) :
nmake -fmakefile.mak CC=cl CALL_BY_REF=0 GLOBAL_RND=0 GLOBAL_FLAGS=0 UNCHANGED_BINARY_FLAGS=0
del *.obj
?
Only then it will compile. I tried using older versions from 2019 of NMAKE and it failed!! I tried different toolsets. All failed to compile the floating point library from intel
?
3. YOU MUST SWITCH CONFIGURATION MANAGER TO (PLATFORM WIND32) ITS SET TO X64 BY default AND IT WILL NOT COMPILE. YOU WILL BE MISSING SOME METHODS for Floating.obj
?
?
?
THANK YOU
?
?
?
?
?
?