[Quickfix-developers] INTERNAL COMPILER ERROR while compiling MySQLStore.cpp
Brought to you by:
orenmnero
From: Pasquale d'A. <pas...@ga...> - 2004-06-01 15:10:14
|
I get a "fatal error C1001: INTERNAL COMPILER ERROR compiler file = 'E:\8966\vc98\p2\src\P2\ehexcept.c', line 577)" on compiling = MySQLStore.cpp with Visual Studio 6.0 SP5. I found that the above error is generated by the code: while ( MYSQL_ROW row =3D mysql_fetch_row( sqlResult ) ) in function void MySQLStore::get( int , int , std::vector < std::string = > &) In my libMySQL.lib I have declared MYSQL_ROW as an object overloading = the operator[] (in order to get the field by its index) and the operator = bool (in order to resolve the conditional expression). I think this is = the right way, but I get the described fatal error. I work around the problem converting the above initialization in an = assignment in the following way: MYSQL_ROW row; while ( row =3D mysql_fetch_row( sqlResult ) ) this code reuses the same object 'row' but it works, unlike the above = one. Regards. Pasquale d'Aloise |