X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=xtP
	RQCZxVa5sEIug58eSd3m2kM8kW85+rcx/fAmMcocmtHn7IW56BTrQ1PhJNbQ/l4Y
	DPUR4dLd3wGRokC//Bd7M3T1NG7p2Hy68dkx0PyZlvphas0AxHYUX2lhOzukdqmk
	2Onre6igUsV48DH/neG/MjlQWVJVH2kRLWnYLSYQ=
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:to:from:subject:date:message-id:mime-version
	:content-type:content-transfer-encoding; s=default; bh=otCV2z1qf
	c/3bDAZsnGLM6ThFrw=; b=Vqe5veITnrRMU+3+L1QeU/wX316oz7m2kaiDwg1Wv
	wH/PqH9noCtp5elcHCgr2zXBfMFpWESS35TCufVEg5ZzDhHnq0y/WpgpO6yaruoU
	RGMyjSJLaKpocMvSngbGkdWBODXnUtOTU3k76/4Hqst6oCBQLI9raGD/5CLXsT5s
	ZM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1
To: cygwin@cygwin.com
From: David <dbj@vip.cybercity.dk>
Subject: (gdb ) r test -a1 -a2 > test.log  will not work with boost. Why?
Date: Fri, 19 Apr 2013 15:13:32 +0200
Lines: 21
Message-ID: <kkrft3$4vf$1@ger.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0

I have used boost::program_options and when I try to run the application 
in the debugger I get:

(gdb) r test -a1 -a2 > test.log
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /cygdrive/c/Users/dbj/Debug/test.exe -a1 -a2 > test.log
[New thread 275892.0x435b8]
[New thread 275892.0x435bc]
terminate called after throwing an instance of 
'boost::exception_detail::clone_
mpl<boost::exception_detail::error_info_injector<boost::program_options::multip
e_occurrences> >'
   what():  multiple occurrences

Program received signal SIGABRT, Aborted.
0x77637094 in ntdll!LdrFindResourceEx_U ()
    from /cygdrive/c/windows/system32/ntdll.dll

Why do I get this? I can run it without redirection


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

