我想用mysql++来开发,参考网上配置步骤的时候有一步是
C: [回车]cd Program Files\MySQL\MySQL Server 5.0\lib\opt [回车] dlltool -k -d C:\TEMP\mysql++-3.0.6\libmysqlclient.def -l libmysqlclient.a [回车]
这个dlltool是什么,opt下怎么没有,如何得到,或者怎么配置mysql++
C: [回车]cd Program Files\MySQL\MySQL Server 5.0\lib\opt [回车] dlltool -k -d C:\TEMP\mysql++-3.0.6\libmysqlclient.def -l libmysqlclient.a [回车]
这个dlltool是什么,opt下怎么没有,如何得到,或者怎么配置mysql++
http://www.newsmth.net/bbstcon.php?board=NewExpress&gid=10322518
From the main menu select File, New Project. Then in the wizard select Visual
C++, Win32. Under Visual Studio installed templates select Win32 Console
Application. Enter a suitable name, and then click OK to enter the Win32
Application wizard.
In the Win32 Application Wizard, click on Application Settings. Use the
default settings. The Console application radio button, and Precompiled header
checkbox should be selected. Click Finish to close the wizard.
From the drop down list box on the toolbar, change from the default Debug
build to the Release build.
From the main menu select Project, Properties. This can also be accessed using
the hot key ALT + F7.
Under Configuration Properties, open the tree view.
Under C++, General, add include/ into the Additional Include Directories text field.
Under Linker, General, add lib/opt into the Additional Library Directories text field.
Under Linker, Input, add mysqlcppconn.lib into the Additional Dependencies
text field.
In the Editor, copy standalone_example_docs1.cpp, and add #include "stdafx.h"
at the top of the file.
From the main menu select Build, Build Solution, to build the solution.
Open a command prompt by selecting Start, Execute, and entering cmd. Go to the
build directory for the project, and change into the Release directory.
Run the application. You will receive an error: “cannot find
mysqlcppconn.dll”.
Copy mysqlcppconn.dll to the working directory or extend the PATH environment
variable using SET PATH=%PATH%;C:\path\to\cpp. Alternatively, you can copy
mysqlcppconn.dll to the Windows installation Directory, typically c:\windows.