我使用的是mysql++1.7.32的源代码,解压缩后,打开readme.vc,里面介绍的是如何用vc来使用mysql++,如下:
o Under Configuration Properties::General change "Use
Managed Extensions" to "No"
o Under C/C++::General add to "Additional Include
Directories": c:\mysql++\lib, c:\mysql\include
这是加入头文件,这我能理解
o Under C/C++::Code Generation change "Runtime Library" to
"Multi-threaded Debug DLL (/MDd)" [change the /MTd
to /MDd] for the Debug configuration. For the Release
configuration, make it "Multi-threaded DLL (/MD)".
这是不是将libmysql.dll放到我自己程序的目录呢?
o Under Linker::General add to "Additional Library
Directories": "c:\mysql\lib\debug, c:\mysql++\Debug" for
the Debug configuration. Set the Release configuration
up similarly, using the release MySQL and MySQL++
subdirectories.
加入库目录,这也能理解,但mysql++下没有Debug目录呀?
o Under Linker::Input add to "Additional Dependencies":
"libmysql.lib wsock32.lib mysql++.lib"
mysql里只有libmysql.lib呀,wsock32.lib mysql++.lib去哪里弄呢?
在win下有哪位大哥大姐成功的用过mysql++写程序呢?
还请高手们帮帮小弟!!先谢过了。