Hello.


Why do you link both libmysqld and libmysqlclient with you file at once?







"Mohsen Pahlevanzadeh" <[EMAIL PROTECTED]> wrote:

> Dears,I have following Makefile :

> INCS=-I/usr/include/mysql

> LIBS=-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm

> LIBS_R=-L/usr/lib/mysql -lmysqlclient_r -lpthread -lz -lcrypt -lnsl -lm

> -lpthread

> MYSQL_LIBS=-L/usr/lib/mysql -lmysqld -lpthread -lz -lcrypt -lnsl -lm

> -lpthread -lrt

> CXXFLAGS=-march=i486 -mcpu=i686

> CXX=g++

> 

> sql2sql : sql2sql.o

>        $(CXX) $(LIBS) $(LIBS_R) $(MYSQL_LIBS) -o sql2sql sql2sql.o ;

> sql2sql.o : sql2sql.cpp

>        $(CXX) -c $(INCS) core.cpp mysql_engine.cpp sql2sql.cpp;

> 

> clean :

>        rm -rf sql2sql.o mysql.o core.o

> 

> 

> 

> But when i run make utility,I receive following error:

> g++ -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib/mysql

> -lmysqlclient_r -lpthread -lz -lcrypt -lnsl -lm -lpthread -L/usr/lib/mysql

> -lmysqld -lpthread -lz -lcrypt -lnsl -lm -lpthread -lrt -o sql2sql

> sql2sql.o ;

> /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld:

> cannot find -lmysqld

> collect2: ld returned 1 exit status

> make: *** [sql2sql] Error 1

> 

> My distro is Slackware 10.0 .I didn't add anything to my Linux.It mean i

> just i don't install everything to my Linux.

> Please help me..............

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to