Server Help

Bot Questions - Linking problems when trying to use Mysql++

Anonymous - Tue Oct 07, 2003 9:57 pm
Post subject: Linking problems when trying to use Mysql++
Trying to get the MySQL++ API to work with a Merv dll. I downloaded a version of the api from www.mysql.com for VC++ and read the readme. There was a section of adding it to work with an exsisting project, but Im not sure if its working when adding it to a merbot dll. Heres what it says:

Quote:

1) Add mysql++.lib to the project
2) Go to Project Settings, C/C++ tab, category Preprocessor, and add the
directories include and mysql/include to the "Additional include
directories" edit box
3) In the source files, in which you want to use MySQL++, add the line
#include <mysql++>
after all other included header files (especially those of MFC)


Now when I try to use some code and Build the project im getting Linking Errors. http://pests.cywh.com/log.txt is the log of the warnings/errors. When I remove the lib from the project files, the errors go down to about 12 and they are "LNK2001: unresolved external symbol ..." errors.

Anyone know what Im doing wrong or how to fix?
Smong - Wed Oct 08, 2003 3:03 pm
Post subject:
Perhaps it is conflicting with a library that your compiler adds by default, or one that is in the list to link in (it mentions some stuff being already defined).

Unresolved external symbol... probably means the linker can't find a certain function() that is in a library or you forgot to include a source file in the project (but you have the .h file, otherwise it would say implicit declaration).
Anonymous - Wed Oct 08, 2003 4:25 pm
Post subject:
Well, I know that it works fine when I tested the API in a regular program, but when adding it to a dll and trying to build gives errors.

Anyone else? icon_sad.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group