MySQL Forums
Forum List  »  Connector/C++

Re: fail to build mysql++--more information
Posted by: luke Peng
Date: August 11, 2007 04:36PM

By checking the config.log file I have the following message.
What can it tells me? Please give me some help
................
configure:6759: result: /usr/include/mysql
configure:6768: checking for mysql_store_result in -lmysqlclient
configure:6798: gcc -o conftest -g -O2 -I/usr/include/mysql conftest.c -lmysqlclient -lz >&5
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure:6804: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "mysql++"
| #define PACKAGE_TARNAME "mysql++"
| #define PACKAGE_VERSION "2.3.2"
| #define PACKAGE_STRING "mysql++ 2.3.2"
| #define PACKAGE_BUGREPORT "plusplus@lists.mysql.com"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char mysql_store_result ();
| int
| main ()
| {
| mysql_store_result ();
| ;
| return 0;
| }
configure:6830: result: no
configure:6841: error: Could not find working MySQL client library!

## ---------------- ##
36

Options: ReplyQuote


Subject
Views
Written By
Posted
4550
August 11, 2007 04:26PM
Re: fail to build mysql++--more information
3416
August 11, 2007 04:36PM


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.