www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
X-YMail-OSG: | yvsBK_YVM1me45MHH.c80H1pdMgpMFBY0fBMEy1BSvePnIBJZ.R05h3pnCDOHD9pzZJmqMCufwYb1IzJIQryJUVUy7OAJoAQXyiOMBZVnWIprHNGuGxDCGhT17JF7FhJe5McOhRbXSLYvdvUzRKrBUMd6S.XpizMjX6enWty2IJ3OmCiypQH8H.UTTc- |
X-Yahoo-Newman-Property: | ymail-3 |
Message-ID: | <48F8D99C.3040407@sbcglobal.net> |
Date: | Fri, 17 Oct 2008 11:29:48 -0700 |
From: | Tim Prince <TimothyPrince AT sbcglobal DOT net> |
Reply-To: | tprince AT computer DOT org |
User-Agent: | Thunderbird 2.0.0.17 (X11/20080922) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygwin:g++linker problems |
References: | <229799 DOT 77695 DOT qm AT web55807 DOT mail DOT re3 DOT yahoo DOT com> |
In-Reply-To: | <229799.77695.qm@web55807.mail.re3.yahoo.com> |
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 |
jayshankar nair wrote: > Hi, > > I am getting compilation problems while linking the test shared libraries in cygwin1.7. gcc,g++ and bin-utils are installed in the system. Works fine in linux. > > Files in test directory > /test > $ ls > f.c f.cpp f.o f1.c f1.cpp libf.so libfun.so > > Compilation fails with the following message > > $ g++ -L. f1.cpp -lf > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find > -lf > collect2: ld returned 1 exit status. > > f1.cpp > #include<iostream> > using namespace std; > void func(); > int main() > { > func(); > return 0; > } > > func is implemented in libf.so > Assuming those .so are linux shared libraries, they have no chance of working under cygwin. You must rebuild the libraries with your cygwin compiler. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |