未安装C ++和MySql libmysql.dll [英] C++ and MySql libmysql.dll not installed

查看:106
本文介绍了未安装C ++和MySql libmysql.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此代码段上收到此错误.

Rceiving This Error on this code snippet.

Error   1   error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function _main
Error   2   error LNK2019: unresolved external symbol _mysql_init@4 referenced in function _main<pre lang="xml"><pre>#include "stdafx.h"

#include <iostream>
#include <conio.h>
#include <string>
#include <fstream>
#include <windows.h>
#include <C:\\Program Files\\MySQL\\MySQL Server 5.5\\include\\mysql.h>
using namespace std;
int main()
   {
   MYSQL* conn;
   conn = mysql_init(NULL);
   if(mysql_real_connect(conn,"urlock.db.5513143.hostedresource.com","VendorCheck","Reader1234","urlock",0,NULL,0) != 0)
         cout << "Connected!";
      else
         cout << "Failed!";
   return 0;
   }

推荐答案

您好,
抱歉造成延迟,但关注Artical可能会帮助您解决问题
http://mmf.utoronto.ca/resrchres/mysql/ [
hello there
Sorry for the delay but following Artical may help you with the problem
http://mmf.utoronto.ca/resrchres/mysql/[^]
may be helpful
rest regards.


你好,
从来没有这样做,并且对此链接不了解很多,可能对解决问题有帮助:

http://www.suite101.com/content/using-a-mysql- database-with-c-a70097 [ ^ ]

最好的问候.
hello there
never did this and dont know alot about this following link may be helpful for problem :

http://www.suite101.com/content/using-a-mysql-databases-with-c-a70097[^]

best regards.


这篇关于未安装C ++和MySql libmysql.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆