Solved

Error compiling mysql++ version 1.7.12

Posted on 2004-08-20
3
315 Views
Last Modified: 2010-04-20
Hi,
I downloaded mysql++ version 1.7.12 from http://tangentsoft.net  and am trying to install it.

The configure runs fine...and then when I try to "make" .. I get the following error towards the end:-

/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[3]: *** [libmysqlpp.la] Error 1
make[3]: Leaving directory `/root/mysql/mysql++-1.7.12/sqlplusint'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/mysql/mysql++-1.7.12/sqlplusint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql/mysql++-1.7.12'
make: *** [all] Error 2

what is this -lz???


0
Comment
Question by:sandeep_th
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
Gns earned 500 total points
ID: 11852257
Hm, do you have development libraries for zlib installed? If not, install it, then rerun the make.

-- Glenn
0
 

Author Comment

by:sandeep_th
ID: 11852723
Installed zlib and it worked. I guess you earned the points.

once it was installed "successfully" I just tested it with some test code(using one of mysql++ headers)....

and when I compile it, I get the following errors:-


/tmp/ccnaWLco.o(.gnu.linkonce.t._ZNK11MysqlResUse11fetch_fieldEv+0x10): In function `MysqlResUse::fetch_field() const':
: undefined reference to `mysql_fetch_field'
/tmp/ccnaWLco.o(.gnu.linkonce.t._ZN11MysqlResUse10field_seekEi+0x13): In function `MysqlResUse::field_seek(int)':
: undefined reference to `mysql_field_seek'
/tmp/ccnaWLco.o(.gnu.linkonce.t._ZNK11MysqlResUse10num_fieldsEv+0x10): In function `MysqlResUse::num_fields() const':
: undefined reference to `mysql_num_fields'
collect2: ld returned 1 exit status


Would you know what it is complaining about now?

cheers,
sandeep
0
 

Author Comment

by:sandeep_th
ID: 11855114
Never mind.....solved this problem on my own...it was a problem with not "including" the right directories.

cheers,
sandeep
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question