After the confusion that arose during the libodbc++ build because the
linux mingw(gcc 10.2) was inconsistent and its reinstallation,
I'm back to the starting point: Although there is a try/catch,
odbc::SQLException is not caught.
The current test program works properly with wine and mingw(gcc 8.2):
-------------------------------------------------------------
Connecting to TRT-MRT ...
SQLException:Failed to connect to datasource: [unixODBC][Driver
Manager]Data source name not found and no default driver specified
sqlState=IM000
catch block passed
TRT-MRT ! Hello, World!
-------------------------------------------------------------
Result for current test program with wine and mingw(gcc 10.2):
--------------------------------------------------------------
Connecting to TRT-MRT ...
terminate called after throwing an instance of 'odbc::SQLException'
--------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public