delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/30/19:06:37

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=yd
CR7QGngCHwPVpQJU0YzJFYq9VA43zmwfh5W2yRcUNJDTNsrmM1NNXnQh61n8+adZ
a7FOgGYdH7xVHGFrccyGX1GkzV3UjMGTsAfCdWciJZcbgPpPwZcsGB4SV9aV990s
EGRccwzbtEKsqlmBlyxuy75muzXU/TcyoA8dDXLFs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=IhQ9Lu9m
3TfCecX7g4Gkha/yv4Y=; b=CjwiuabCQ13wzYUv7vKsn9ZOwesa3y4LTK3tMU2S
A9Wad6V5l8kdyO9RuvvJybCIY/9NREllsQeb0yF/Hc6IS5vTj+weAXs2ds3BjBhz
ZDIa+VlYSvkPSAP/1RDTVgr/Qb/yWf9YZdJXoe/9RXCoguKKnPwyyb9VI/bBsL5L
NDM=
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
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.60.52.165 with SMTP id u5mr8542862oeo.15.1372633579223; Sun, 30 Jun 2013 16:06:19 -0700 (PDT)
In-Reply-To: <51D06E54.80901@gmail.com>
References: <fee89236a34f4d82ab3607bf14531e88 AT star-mountain DOT com> <51CFC91B DOT 7080104 AT gmail DOT com> <CAOgZ4k_hpuwcaGv2=+OpjyDguDn3GdSLC__M2HdSHw7ODcbECQ AT mail DOT gmail DOT com> <51D06E54 DOT 80901 AT gmail DOT com>
Date: Sun, 30 Jun 2013 16:06:19 -0700
Message-ID: <CAOgZ4k9NQkhg6c7BZLB3oJwK6=mAgJqB+H4SoTVVidAU7khjZQ@mail.gmail.com>
Subject: Re: difficulty with c++ boost::thread (1.53.0) on Cygwin 1.7.20(0.266/5/3)
From: Lewis S <lewis DOT cygwin AT gmail DOT com>
To: cygwin AT cygwin DOT com

Thanks for the information about nm
We're both using the same g++ -- and presumably the same boost & cygwin.
I'm still at the same error.
... unless there are other suggestions, I guess I'll re-install cygwin
and hope for the best.

With gratitude,
Lewis


On Sun, Jun 30, 2013 at 10:43 AM, marco atzeri <marco DOT atzeri AT gmail DOT com> wrote:
> Il 6/30/2013 6:31 PM, Lewis S ha scritto:
>
>> Thanks Marco!
>>
>> I now get complaints about start_thread_noexcept:
>>
>> $ g++ -D THREADED  multithread.cpp -l boost_system-mt -l boost_thread-mt
>
>
> it works on my system, with
>
> $ g++ --version
> g++ (GCC) 4.5.3
>
>
>
>>
>> /tmp/ccfP6V1v.o:multithread.cpp:(.text$_ZN5boost6thread12start_threadEv[boost::thread::start_thread()]+0xe):
>> undefined reference to `boost::thread::start_thread_noexcept()'
>> collect2: ld returned 1 exit status
>>
>> Can you (or anyone) tell me how to go from the "undefined reference"
>> error to the name of the library to be loaded?
>
>
> $ nm  /usr/lib/libboost_thread-mt.dll.a |grep start_thread
> 00000000 I __imp___ZN5boost6thread12start_threadEv
> 00000000 T __ZN5boost6thread12start_threadEv
> 00000000 I __imp___ZN5boost6thread12start_threadERKNS_17thread_attributesE
> 00000000 T __ZN5boost6thread12start_threadERKNS_17thread_attributesE
>
>
>> Do the -l argument themselves require an order?  If so, how do I learn
>> the required ordering (w/o trial&error)
>
>
> -l requires an order if one library depends on a following one.
> For your case both ways work
>
> g++  -D THREADED  multithread.cpp  -l boost_thread-mt -l boost_system-mt
>
> as there is no dependency between them
>
>>
>> With gratitude,
>> Lewis
>>
>>
>
> --
> 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
>

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

- Raw text -


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