Re: [Quickfix-users] RES: Trouble compiling, linker errors
Brought to you by:
orenmnero
From: <Gre...@Ca...> - 2006-10-19 19:06:42
|
Yes, that's correct. I confused myself and picked the non-DLL multithreaded runtime library. Unfortunately, while I can now compile, my code crashes with a memory error: Unhandled exception at 0x7c812a5b in fix-test-connection.exe: Microsoft C++ exception: FIX::ConfigError at memory location 0x0012f610 and it breaks at line 107 in the C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\xutility and trying to continue just leads to stack overflow errors And there is this linker warning still: 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library I assume that the code should run fine, as it used to run correctly in the past. If I do as the linker suggests and exclude the library I get more linker errors: 1>------ Rebuild All started: Project: fix-test-connection, Configuration: Debug Win32 ------ 1>Deleting intermediate and output files for project 'fix-test-connection', configuration 'Debug|Win32' 1>Compiling... 1>Trade_Entry_Sample.cpp 1>FixApp.cpp 1>Generating Code... 1>Compiling manifest to resources... 1>Linking... 1>quickfix.lib(HttpConnection.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(HttpMessage.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(Settings.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(MSXML_DOMDocument.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(Acceptor.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(SocketServer.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(SocketMonitor.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(SocketConnection.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(HttpServer.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(SessionFactory.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(Message.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(DataDictionary.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(Dictionary.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(MessageStore.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(SocketInitiator.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(Initiator.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(SessionSettings.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(Utility.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(FieldMap.obj) : error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<int,class FIX::FieldBase,struct FIX::message_order,class std::allocator<struct std::pair<int const ,class FIX::FieldBase> >,1> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<int,class FIX::FieldBase,struct FIX::message_order,class std::allocator<struct std::pair<int const ,class FIX::FieldBase> >,1> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@HVFieldBase@FIX@@Umessage_order@2@V?$allocator@U?$pair@$$CBHVFieldBase@FIX@@@std@@@std@@$00@std@@@std@@QBE_NABV012@@Z) 1>quickfix.lib(Session.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(FileLog.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>quickfix.lib(FileStore.obj) : error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo 1>C:\Documents and Settings\gchabala\My Documents\Visual Studio 2005\Projects\fix-test-connection\Debug\fix-test-connection.exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://c:\Documents and Settings\gchabala\My Documents\Visual Studio 2005\Projects\fix-test-connection\Debug\BuildLog.htm" 1>fix-test-connection - 23 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== which looks like one perticular symbol is missing. Greg Chabala "Djalma Rosa dos Santos Filho" <drs...@bm...> 10/19/2006 01:09 PM To <Gre...@Ca...>, <qui...@li...> cc "Oren Miller" <or...@qu...> Subject RES: [Quickfix-users] Trouble compiling, linker errors Suggestion: check if your application and the quickfix.lib are both using the same run-time library. Example: if quickfix.lib was built using /MTd then your application cannot use /MT. To check go to C/C++ | Code Generation | Use run-time library. Djalma -----Mensagem original----- De: qui...@li... [mailto:qui...@li...] Em nome de Gre...@Ca... Enviada em: quinta-feira, 19 de outubro de 2006 13:37 Para: qui...@li... Cc: Oren Miller Assunto: Re: [Quickfix-users] Trouble compiling, linker errors QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html -- This communication may contain privileged and/or confidential information and is intended solely for the addressee. No waiver of confidentiality or privilege is made by mistransmission. If you are not the intended recipient, you are hereby notified that any unauthorized dissemination, distribution, reading, printing, copying and/or use of this communication is strictly prohibited. If you have received this communication in error, please delete this message and immediately notify the sender by return e-mail. Calyon Financial Inc. makes no representation or warranty regarding the correctness of any information contained herein, or the appropriateness of any transaction for any person. Nothing herein shall be construed as a recommendation to buy or sell any financial instrument or security. This communication is for informational purposes only. Unless expressly stated, opinions in this e-mail are those of the individual sender and not of the Calyon Financial Group. For further information about the Calyon Financial Group, please see our website at http://www.calyonfinancial.com |