sandeep_th
asked on
Error compiling mysql++ version 1.7.12
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.1 2/sqlplusi nt'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/mysql/mysql++-1.7.1 2/sqlplusi nt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql/mysql++-1.7.1 2'
make: *** [all] Error 2
what is this -lz???
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
collect2: ld returned 1 exit status
make[3]: *** [libmysqlpp.la] Error 1
make[3]: Leaving directory `/root/mysql/mysql++-1.7.1
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/mysql/mysql++-1.7.1
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql/mysql++-1.7.1
make: *** [all] Error 2
what is this -lz???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Never mind.....solved this problem on my own...it was a problem with not "including" the right directories.
cheers,
sandeep
cheers,
sandeep
ASKER
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.linko
: undefined reference to `mysql_fetch_field'
/tmp/ccnaWLco.o(.gnu.linko
: undefined reference to `mysql_field_seek'
/tmp/ccnaWLco.o(.gnu.linko
: undefined reference to `mysql_num_fields'
collect2: ld returned 1 exit status
Would you know what it is complaining about now?
cheers,
sandeep