Dll missing error
Posted by: Manesh Patel
Date: January 30, 2011 11:33AM

Hello,

I have a simple DLL i created without mysql and it works fine. When I downloaded the mysql connector/c R6.0.2 and tried to use it, I now get "DLL not found" in Windows 7. I am using a 64bit Windows 7 environment. However, I used the 32 bit connector. I tried the 64bit connector but I kept on getting a error LNK2019 unresolved external symbol _mysql_int@4.

What am I doing wrong?

Here is the code in Visual C++ 2010 Express:
#include <Windows.h>
#include <string.h>
#include <iostream>
//#include <my_global.h>
#include <mysql.h>
#include <stdio.h>

using namespace std;
MYSQL *connection, mysql;
MYSQL_RES *result;
MYSQL_ROW row;
int query_state;

int __stdcall testfunction(int chPrice)
{
mysql_init(&mysql);
if (chPrice == 3)
return(1);
else
return(0);
}

Options: ReplyQuote


Subject
Views
Written By
Posted
Dll missing error
2735
January 30, 2011 11:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.