Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

How to check for MySQL Client library presense? (no replies)

$
0
0
I was just wondering, is a way [already built into the connector] to check for the presence of "libmysql.dll" / "libmysqlclient_r.dylib" / "libmysqlclient_r.sl" / "libmysqlclient_r.so"? It seems that the only indication that one of these files are missing when retrieving a driver instance is the DLL Missing dialog box (windows specific instance). This doesn't seem like a very graceful way to handle a missing library in my particular implementation.

If there isn't something that I'm missing in the connector source, it wouldn't be too hard to edit the source, but I figured that it would be better to ask first.

*Edit-
I had just found the implementation file that I was searching for. std::runtime_error is thrown on library loading failure.

*Second Edit-

Missing DLL cannot be caught by a try block :(
If anyone has any ideas, that would be great, I've spent far more of this project's time than I can afford on this.
Thanks for your time.

Luke

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>