This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why can not find libmysql.so but libmysql.a


MYSQL_INC=/usr/mysql-connector-c-6.0.2-linux-glibc2.3-x86-32bit/include
MYSQL_LIB=/usr/mysql-connector-c-6.0.2-linux-glibc2.3-x86-32bit/lib
all:
 gcc -I${MYSQL_INC} -c testmain.c 
 gcc -o testmain.exe testmain.o -L${MYSQL_LIB} -lmysql
///////////////////////////////////////////////////////////////
when I complie it cannot find libmysql.so, but if I create libmysql.a then
it can find that
so under the Cygwin, the ld can not link to *.so file???
hope your reply

-- 
View this message in context: http://www.nabble.com/Why-can-not-find-libmysql.so-but-libmysql.a-tp25210249p25210249.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]