MySQL Forums
Forum List  »  Connector/C++

Re: Problem with linking Release configuration (C++ Connector 1.0.3a)
Posted by: Alex Galkin
Date: March 18, 2009 09:31AM

> did i understood correctly, that you re-wrote all
> code in you project to use mysql c-api instead of
> connector/c++? :(
Not every line of code, but all mysql-related ones.
I had to convert some application data to other types for using with c-api, but it really works instead of connector.
Also, I've tries to use static library, but is does not work even in Debug configuration (I've walked thru the forum for solution, but nothing helped me to force it work).

> building install projects (or nmake install) does
> nothing more, but copy headers and built libraries
> for current configuration to Program
> Files/MySQL/ConnectorCPP "include" and "lib"
> subfolders respectively. It doesn't add anything
> to PATH. And it's up to you to set correct
> directories for includes/libs in your project. The
> error you had supposed to mean, that library you
> are linking against, doesn't have such exported
> function(get_driver). But if your configurations
> were identical - it would build your project
> against same library. So, smth had to be
> different, or I understood something wrongly, or I
> missed smth...

include and lib folders were added to VC++ Directories in VS2008 settings, so still there is no different directories settings for each configuration, they must be the same for Debug and Release configurations.

Since there is no plans to add new mysql-related functionality to this project, I'll leave current implementation. If I'll have some free time, I'll try to create new configuration from Debug one and change compiler settings step-by-step to receive Release configuration (optimizations, range checks, etc)...
BTW, I will not wonder if this newly made configuration will work normally when it will be equal to Release one. :)

Options: ReplyQuote

Written By
Re: Problem with linking Release configuration (C++ Connector 1.0.3a)
March 18, 2009 09:31AM

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.