[Quickfix-developers] FW: Not able to compile the "tradeclient.cpp" or "orderclient.cpp" with Memor
Brought to you by:
orenmnero
From: <Nil...@co...> - 2008-02-29 07:29:04
|
It was silly mistake - just remove the () after storeFactory and it will compile fine. FIX::MemoryStoreFactory storeFactory; and not FIX::MemoryStoreFactory storeFactory(); Thanks -Nilesh ________________________________ From: Gajjar, Nilesh (Cognizant) Sent: Friday, February 29, 2008 12:46 PM To: qui...@li... Subject: Not able to compile the "tradeclient.cpp" or "orderclient.cpp" with MemoryStore Code Looks like; try { FIX::SessionSettings settings( file ); Application application; //FIX::FileStoreFactory storeFactory( settings ); FIX::MemoryStoreFactory storeFactory(); FIX::ScreenLogFactory logFactory( true, true, true ); //FIX::FileLogFactory logFactory(settings) ; FIX::SocketInitiator initiator( application, storeFactory, settings, logFactory ); initiator.start(); application.run(); initiator.stop(); return 0; } catch ( std::exception & e ) { std::cout << e.what(); return 1; } Compile time error: Error 1 error C2664: 'FIX::SocketInitiator::SocketInitiator(FIX::Application &,FIX::MessageStoreFactory &,const FIX::SessionSettings &,FIX::LogFactory &) throw(FIX::ConfigError)' : cannot convert parameter 2 from 'FIX::MemoryStoreFactory (__cdecl *)(void)' to 'FIX::MessageStoreFactory &' d:\myprojects\exsim\quickfix\source-v0\examples\tradeclient\tradeclient. cpp 56 The above code works fine with FileStore, any idea what is wrong. I have not done any modification in the QF library code. Thanks & Regards -Nilesh Sr. Technology Architect Banking and Financial Service - Technology Consulting Group (BFS-TCG) Cognizant Technology Solutions India Pvt Ltd | #26, Rajiv Gandhi Infotech Park, MIDC, Hinjewadi, Pune 411057 Phone: +91-20-66521100 Extn : 5226 | VNet: 205226 Location: ISH2A-M003 (ISH 2nd Floor, A Wing) This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. |