MySQL Forums
Forum List  »  Connector/C++

Re: undefined reference to `get_driver_instance'
Posted by: Ulf Wendel
Date: September 07, 2009 06:47AM

Its a change we did after 1.0.5 GA. From the CHANGES file: "get_driver_instance() is only available in dynamic library builds, static builds won't have this symbol. This is done, because someone might decided to load the dll with LoadLibrary/dlopen and needs an entry point to start using the library (some kind of a Driver Manager). For those, who don't use cmake for building you need to define mysqlcppconn_EXPORTS if you are loading dynamically and want to use that entry point. (Andrey)"

If you want to use get_driver_instance with static builds, you could also manually include mysql_driver.h.


Options: ReplyQuote

Written By
Re: undefined reference to `get_driver_instance'
September 07, 2009 06:47AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.