| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=BAYES_00,J_CHICKENPOX_82,SPF_HELO_PASS,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <25210249.post@talk.nabble.com> |
| Date: | Sun, 30 Aug 2009 03:13:04 -0700 (PDT) |
| From: | runbirder <runbirder AT 163 DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Why can not find libmysql.so but libmysql.a |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |