> the example program compiles and runs. when i go to make my own
> project i use the wizard and create a basic dialog MFC app. at
> the top of the main cpp file i add #include <mysql++> and then in
> the program call Connection con("login","localhost","root","abc");
>
> in the mysql++ download there is many lib and include folders, i
> have copyied the contents of these in the the vc++6 include and
> lib folders.
>
> when come to compile i get many errors as seen below. please help
>
...snip...

> Generating Code...
> Linking...
> mysqlDlg.obj : error LNK2001: unresolved external symbol "public:
> __thiscall MysqlConnection::~MysqlConnection(void)"
> (??1MysqlConnection@@[EMAIL PROTECTED])
> mysqlDlg.obj : error LNK2001: unresolved external symbol "public:
> __thiscall MysqlConnection::MysqlConnection(char const *,char
> const *,char const *,char const *,bool)"
> (??0MysqlConnection@@[EMAIL PROTECTED]@Z)
> Debug/mysql.exe : fatal error LNK1120: 2 unresolved externals
> Error executing link.exe.
>
> mysql.exe - 3 error(s), 14 warning(s)

Have you included mysql++.lib in your list of libraries to link to within
your project?

(Project - Settings - 'All Configurations' from 'Settings for:' combo, Link
tab, 'Input' from 'Category' combo)

--
Jason Teagle
[EMAIL PROTECTED]


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to