Re: [Quickfix-users] RES: Trouble compiling, linker errors
Brought to you by:
orenmnero
From: <Gre...@Ca...> - 2006-10-20 20:06:34
|
I've fixed my problem by downloading the source distribution and building it myself. For whatever reason, now everything works fine, no more exceptions or linker errors. I suspect a problem in the binary distribution. Greg Chabala Greg CHABALA/ICF 10/20/2006 08:52 AM To Oren Miller <or...@qu...> cc qui...@li... Subject Re: [Quickfix-users] RES: Trouble compiling, linker errors In the project properties, under C++, Code Generation, Enable C++ Exceptions is set to Yes (/EHsc). At your prompting I tried the Yes With SEH setting as well, but it does not catch the exception either, so I put it back to Yes. Greg Chabala Oren Miller <or...@qu...> 10/19/2006 06:47 PM To Gre...@Ca... cc qui...@li... Subject Re: [Quickfix-users] RES: Trouble compiling, linker errors Are you sure you have C++ exception handling enabled in your project? --oren On Oct 19, 2006, at 4:21 PM, Gre...@Ca... wrote: The project was already doing a catch: catch ( std::exception & e ) but it wasn't catching anything. I've commented most everything out now. I'm left with this: #include "FixApp.h" #include "quickfix\SessionSettings.h" using namespace std; int main() { try { std::string file = "Trade_Entry_Sample.ini"; FIX::SessionSettings settings( file ); return 0; } catch ( ... ) { std::cerr << "There was an error\n"; return 1; } } It still won't catch the error. It looks to be happening in the settings call based on the stack. I've checked the spelling of the ini file and moved a copy into the Debug folder just to be safe. Greg Chabala -- 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 -- 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 |