Re: [Quickfix-users] RES: Trouble compiling, linker errors
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2006-10-19 23:47:56
|
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 > |