delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/23/22:08:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: "Jiang zhou" <zjiang AT photonicbridges DOT com>
Subject: Re: Request Help for link problem
Date: Tue, 24 Jun 2003 10:08:17 +0800
Lines: 50
Message-ID: <bd8bqj$9eq$1@main.gmane.org>
References: <bd68vp$p9m$1 AT main DOT gmane DOT org> <bd6ct1$pqm$1 AT main DOT gmane DOT org>
X-Complaints-To: usenet AT main DOT gmane DOT org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Thank you.
I have get help from Dave Fletcher. The main problem is the lib is written
by c++. So we have use g++ to using it.

--
Best Regards
Jiangzhou

"gilles civario" <gilles DOT civario AT cea DOT fr> wrote in message
news:bd6ct1$pqm$1 AT main DOT gmane DOT org...
> Jiang zhou wrote:
>
> > I have build a lib. It create h file and lib file in usr/local/include
and
> > usr/local/lib dictionary.
> > But when I create application using this lib, the link problem occur.
> > The lib is Jrtplib come from
> > http://lumumba.luc.ac.be/jori/jrtplib/jrtplib.html. I can build this
lib.
> > But when I compile the example it has problem as below:
> >
> >
> > $ gcc -Ljrtp 1.cpp
>
> May be -ljrtp would be better. (if the library's name is libjrtp.a)
> And for a C++ source file, you should use g++ instead of gcc.
>
> Gilles.
>
> > /cygdrive/c/DOCUME~1/zjiang/LOCALS~1/Temp/ccX94cqR.o(.text+0x35):1.cpp:
> > undefine
> > d reference to `RTPSession::RTPSession[in-charge]()'
> > /cygdrive/c/DOCUME~1/zjiang/LOCALS~1/Temp/ccX94cqR.o(.text+0x43):1.cpp:
> > undefine
> > d reference to `RTPSession::~RTPSession [in-charge]()'
> >
/cygdrive/c/DOCUME~1/zjiang/LOCALS~1/Temp/ccX94cqR.o(.eh_frame+0x11):1.cpp:
> > unde
> > fined reference to `___gxx_personality_v0'
> > collect2: ld returned 1 exit status
> > zjiang AT pbzjiangcnsh1 /cygdrive/d/document/voip/jrtplib-2.7/examples
> >
> > In the command line I have use -Ljrtp indicator the lib.
> >
> > Can someone tell why I can't use the lib?
>
>
>




--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019