Solved

Error compiling mysql++ version 1.7.12

Posted on 2004-08-20
3
308 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
  • 2
3 Comments
 
LVL 20

Accepted Solution

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

-- Glenn
0
 

Author Comment

by:sandeep_th
Comment Utility
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
Comment Utility
Never mind.....solved this problem on my own...it was a problem with not "including" the right directories.

cheers,
sandeep
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now