473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Question about libMySql.dll, MySql++ and MySql v4.1.1

Hi, is there anything wrong with using and older version of
libMySql.dll to build version 1.7.1 of MySql++, which is then used by
my C++ programs (building with Visual Studio v6) to access MySql
v4.1.1? Things seem fine that way so far... Here's why I want to do
that:

a) I can't seem to find v1.7.9 of MySql++ that I can build with Visual
Studio v6 (i.e. no .dsw and project file, tried looking here
http://www.mysql.com/downloads/api-mysql++.html). Anyone have a link?

b) If I use the libMySql.dll that comes with version 4.1.1 of MySql,
build MySql++ with it and try to build my C++ programs, my programs
(at the end of building) produce the error:
mysql++.lib(connection.obj) : error LNK2001: unresolved external
symbol _mysql_connect@16

I guess I'm asking two things, is there anything wrong with using the
old libMySql.dll or can you help me solve that link error message!

Many thanks,

Tony.

P.S. One more thing, am I correct in assuming that libMySql.dll is
only there to pass commands to MySql and return results?
Jul 19 '05 #1
6 4994
Tony Baker wrote:
b) If I use the libMySql.dll that comes with version 4.1.1 of MySql,
build MySql++ with it and try to build my C++ programs, my programs
(at the end of building) produce the error:
mysql++.lib(connection.obj) : error LNK2001: unresolved external
symbol _mysql_connect@16


I will try to tell how how to do it, but I don't remember it perfectly:

1. Somewhere at the project settings there is a "link" tab, where you
need to add: mysql++.lib (Make sure you are assigning it to both debug
and release versions, or you run into problems later when trying to
build release version)
2. Somewhere there are other settings that affect all VC projects, where
you assign the library and include paths. There you need to add
This to library path:
c:\mysql\lib\opt\
And these to include path:
c:\mysql\include\
c:\mysql\cppinclude\
3. You need to add
#include <mysql++>
At the beginning of the file, where you use mysql++ stuff.

Now, the problem is, that there is no mysql\cppinclude\ folder. You need
to create it, and get the files in it. There something like 70 or 80
files there, atleast some .hh type of files. You get them in a folder
with some of those mysql++-api things, but I don't remember more, and I
don't have Visual Studio here. But I hope this was some help to you.

Jul 19 '05 #2
Tony Baker wrote:
b) If I use the libMySql.dll that comes with version 4.1.1 of MySql,
build MySql++ with it and try to build my C++ programs, my programs
(at the end of building) produce the error:
mysql++.lib(connection.obj) : error LNK2001: unresolved external
symbol _mysql_connect@16


I will try to tell how how to do it, but I don't remember it perfectly:

1. Somewhere at the project settings there is a "link" tab, where you
need to add: mysql++.lib (Make sure you are assigning it to both debug
and release versions, or you run into problems later when trying to
build release version)
2. Somewhere there are other settings that affect all VC projects, where
you assign the library and include paths. There you need to add
This to library path:
c:\mysql\lib\opt\
And these to include path:
c:\mysql\include\
c:\mysql\cppinclude\
3. You need to add
#include <mysql++>
At the beginning of the file, where you use mysql++ stuff.

Now, the problem is, that there is no mysql\cppinclude\ folder. You need
to create it, and get the files in it. There something like 70 or 80
files there, atleast some .hh type of files. You get them in a folder
with some of those mysql++-api things, but I don't remember more, and I
don't have Visual Studio here. But I hope this was some help to you.

Jul 19 '05 #3
Tony Baker wrote:
b) If I use the libMySql.dll that comes with version 4.1.1 of MySql,
build MySql++ with it and try to build my C++ programs, my programs
(at the end of building) produce the error:
mysql++.lib(connection.obj) : error LNK2001: unresolved external
symbol _mysql_connect@16


I will try to tell how how to do it, but I don't remember it perfectly:

1. Somewhere at the project settings there is a "link" tab, where you
need to add: mysql++.lib (Make sure you are assigning it to both debug
and release versions, or you run into problems later when trying to
build release version)
2. Somewhere there are other settings that affect all VC projects, where
you assign the library and include paths. There you need to add
This to library path:
c:\mysql\lib\opt\
And these to include path:
c:\mysql\include\
c:\mysql\cppinclude\
3. You need to add
#include <mysql++>
At the beginning of the file, where you use mysql++ stuff.

Now, the problem is, that there is no mysql\cppinclude\ folder. You need
to create it, and get the files in it. There something like 70 or 80
files there, atleast some .hh type of files. You get them in a folder
with some of those mysql++-api things, but I don't remember more, and I
don't have Visual Studio here. But I hope this was some help to you.

Jul 19 '05 #4
Thanks for your help, but unfortunatly that is nothing new to me!
Doing that with version 4.1.0 is fine, but won't work with 4.1.1 as I
guess they must have changed some connection method so it's no longer
compatable.
Bummer.

Still, can anyone explain the exact purpose of libMySql.dll to me
(does it simply/basically pass sql commands to MySql and return the
response?) and whether it is ok to use version 4.0 of libMySql.dll
with version 4.1.1 ?

I have been for a few days now, and everything seems just fine... so
far!

Cheers.

Tony.

I will try to tell how how to do it, but I don't remember it perfectly:

1. Somewhere at the project settings there is a "link" tab, where you
need to add: mysql++.lib (Make sure you are assigning it to both debug
and release versions, or you run into problems later when trying to
build release version)
2. Somewhere there are other settings that affect all VC projects, where
you assign the library and include paths. There you need to add
This to library path:
c:\mysql\lib\opt\
And these to include path:
c:\mysql\include\
c:\mysql\cppinclude\
3. You need to add
#include <mysql++>
At the beginning of the file, where you use mysql++ stuff.

Jul 19 '05 #5
Thanks for your help, but unfortunatly that is nothing new to me!
Doing that with version 4.1.0 is fine, but won't work with 4.1.1 as I
guess they must have changed some connection method so it's no longer
compatable.
Bummer.

Still, can anyone explain the exact purpose of libMySql.dll to me
(does it simply/basically pass sql commands to MySql and return the
response?) and whether it is ok to use version 4.0 of libMySql.dll
with version 4.1.1 ?

I have been for a few days now, and everything seems just fine... so
far!

Cheers.

Tony.

I will try to tell how how to do it, but I don't remember it perfectly:

1. Somewhere at the project settings there is a "link" tab, where you
need to add: mysql++.lib (Make sure you are assigning it to both debug
and release versions, or you run into problems later when trying to
build release version)
2. Somewhere there are other settings that affect all VC projects, where
you assign the library and include paths. There you need to add
This to library path:
c:\mysql\lib\opt\
And these to include path:
c:\mysql\include\
c:\mysql\cppinclude\
3. You need to add
#include <mysql++>
At the beginning of the file, where you use mysql++ stuff.

Jul 19 '05 #6
Thanks for your help, but unfortunatly that is nothing new to me!
Doing that with version 4.1.0 is fine, but won't work with 4.1.1 as I
guess they must have changed some connection method so it's no longer
compatable.
Bummer.

Still, can anyone explain the exact purpose of libMySql.dll to me
(does it simply/basically pass sql commands to MySql and return the
response?) and whether it is ok to use version 4.0 of libMySql.dll
with version 4.1.1 ?

I have been for a few days now, and everything seems just fine... so
far!

Cheers.

Tony.

I will try to tell how how to do it, but I don't remember it perfectly:

1. Somewhere at the project settings there is a "link" tab, where you
need to add: mysql++.lib (Make sure you are assigning it to both debug
and release versions, or you run into problems later when trying to
build release version)
2. Somewhere there are other settings that affect all VC projects, where
you assign the library and include paths. There you need to add
This to library path:
c:\mysql\lib\opt\
And these to include path:
c:\mysql\include\
c:\mysql\cppinclude\
3. You need to add
#include <mysql++>
At the beginning of the file, where you use mysql++ stuff.

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MJL | last post by:
This is a mysql/php question (but a little more on the mysql side.) The two are so closely related these days, I thought it would be ok to ask here. I installed on my Suse Linux system mysql 4.0...
0
by: Morten Gulbrandsen | last post by:
Hello programmers this is my path, C:\mysql\bin>path PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\mysql\bin After installing 4.1.0-alpha-max-debug I try to start...
0
by: Tony Baker | last post by:
Hi, is there anything wrong with using and older version of libMySql.dll to build version 1.7.1 of MySql++, which is then used by my C++ programs (building with Visual Studio v6) to access MySql...
0
by: Tony Baker | last post by:
Hi, is there anything wrong with using and older version of libMySql.dll to build version 1.7.1 of MySql++, which is then used by my C++ programs (building with Visual Studio v6) to access MySql...
2
by: Bruce Wolfe | last post by:
What functions can I call to add records using the libmySQL.dll. Thanks.
1
by: Marco Branco | last post by:
Hi. I am using this moment MySql. In my Delphi program, i have a SqlConnection (from palete dbexpress), chossed Mysql, and when i tried to connect i get this message: "Unable to load...
0
by: Mike Ruskai | last post by:
I've been trying to implement database axis using the C api for a many-threaded application (several, actually), and keep running into a problem on server disconnect. One of the main reasons is to...
2
by: kimshapiro100 | last post by:
Question on PhP, MySQL I am thinking of a consumer internet business for which I will have to have a database driven site built. I am thinking of using PhP, MySQL as the main technologies...
1
by: David Moore | last post by:
Hi All, I'm moving some php/mysql development work from one PC to another. I wanted to use the latest versions of php, MySQL and Apache on the new machine, so I've downloaded the appropriate stuff...
1
by: rockdale | last post by:
Well, I guess I did express myself very clearly. I implemented the Ent Lib 2.0 data block against SQL database successfully. The system now is a production system. But now we want to migrate the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.