64-bit Problem
Posted by: oceania oceania
Date: October 26, 2005 09:35PM

Hello Every One!
I'm using IBM OpenPower710(64-Bit) machine.
OS is RedHat ENTERPRISE LINUX version 4(64-Bit).
MySQL is Standard 5.0.15 Linux (IBM/Motorola/Freescale POWER/PowerPC, glibc-2.3, dynamic, gcc).
For my C++ program, I need to use the MySQL Library such as "libmysqlclient.a".
But Can't compile through,the Error Info is :

/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

I think the reason is the MySQL 5.0.15 is not 64-Bit.
Bur I can not find a 64-Bit MySQL 5.0.15 Just For my Machine.

Does anyone Can Help me? Thank You Very Much!

CC = g++
CFLAGS = -O3 -Wall -m64
SQLHOME = -L/usr/lib/mysql
SQLLIBS = -lmysqlclient
all:test
test: mci.o test.o
$(CC) -s -o test -m64 *.o $(SQLHOME) $(SQLLIBS)
mci.o: mci.cpp mci.h
$(CC) $(CFLAGS) -c mci.cpp
test.o: test.cpp test.h
$(CC) $(CFLAGS) -c test.cpp
clean::
rm -f *.o *.log



Edited 2 time(s). Last edit at 10/29/2005 07:04AM by oceania oceania.

Options: ReplyQuote


Subject
Views
Written By
Posted
64-bit Problem
847
October 26, 2005 09:35PM


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.