| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| X-YMail-OSG: | lciIPPEVM1khjfURCVhXco06qLK7jyH4BZeEQoHuyLZysViCd3MHNMFqr9Pl3x09gOQRiis0cMQ7OVLBE6fKuT6zxoM848oC3c1cXO6mYXbMIVpaA.NXyYkKKqZ5c6LSc4vJMkWGCGh2d.90zEb8oQVZUoLQV5VmgK8zlLJIMWbU_oj2nukjVRHBQ2c- |
| X-Mailer: | YahooMailWebService/0.7.247.3 |
| Date: | Fri, 17 Oct 2008 02:40:37 -0700 (PDT) |
| From: | jayshankar nair <n_jayshankar AT yahoo DOT com> |
| Reply-To: | n_jayshankar AT yahoo DOT com |
| Subject: | cygwin:g++linker problems |
| To: | cygwin AT cygwin DOT com |
| MIME-Version: | 1.0 |
| Message-ID: | <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 |
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
I was wondering whether i missed some link options or packages.
Suggestions appreciated.
Thanks,
Jay
--
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 |