Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Linking problems when trying to use Mysql++

 
Post new topic   Reply to topic Printable version
 View previous topic  How do get ip and mid from merv? Post :: Post INFO: Whats wrong with themervbot webs...  View next topic  
Author Message
Pestss
Guest


Offline

PostPosted: Tue Oct 07, 2003 9:57 pm    Post subject: Linking problems when trying to use Mysql++ Reply to topic Reply with quote

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?
Back to top
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Wed Oct 08, 2003 3:03 pm    Post subject: Reply to topic Reply with quote

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).
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Pestss
Guest


Offline

PostPosted: Wed Oct 08, 2003 4:25 pm    Post subject: Reply to topic Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 154 page(s) served in previous 5 minutes.

phpBB Created this page in 0.495135 seconds : 27 queries executed (95.0%): GZIP compression disabled