delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/09/07:37:11

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
Message-ID: <3E9405D1.2020201@yahoo.com>
Date: Wed, 09 Apr 2003 07:36:49 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ignasi Villagrasa <ignasi DOT villagrasa AT grisl DOT net>
CC: Ranjit Mathew <rmathew AT hotmail DOT com>, mingw-users AT lists DOT sourceforge DOT net,
cygwin AT cygwin DOT com
Subject: Re: [Mingw-users] Re: Multi-threaded programs
References: <BAY1-F124v8J8rsA6ja0000b7e8 AT hotmail DOT com> <3E93FB11 DOT 6070706 AT grisl DOT net>
In-Reply-To: <3E93FB11.6070706@grisl.net>

I don't know why Ronald thought this was off topic for Cygwin.  It's a 
cygwin issue as far as I'm concerned.  You are after all using a cygwin 
distributed product.

My guess is that your problem is with the dwarf2 exceptions.  The MinGW 
compilers reverted back to sjlj exceptions due to issues with dwarf2 on 
Win32.

I've added cygwin AT cygwin DOT com to the distribution.  Please note to anyone 
posting on the MinGW list.  A subscription to the list is required.  You 
can choose the nomail option if you don't want mail.  See 
http://www.mingw.org/lists.shmtl for pointers registration forms for 
this list.

Thanks,
Earnie.

Ignasi Villagrasa wrote:
> I'm showing explicitly the output. Here is the linking sentence:
> 
> c++ -o Exefile -g3 -v -Wall -mno-cygwin -mthreads   << my objects >> 
> -L(Directories) -lnetapi32 -lwsock32
> 
> So I don't call explicitly most of linking libraries.
> 
> Perhaps should I use g++ directly ?
> 
> Ignasi Villagrasa.
> 
> Ranjit Mathew wrote:
> 
>>> It fails with and without -mthreads in compilation and linking.
>>>
>>> Here is the list of libraries linked in the application.
>>>
>>> -lnetapi32 -lwsock32 -lstdc++ -lmingwthrd -lmingw32 -lgcc -lmoldname 
>>> -lmsvcrt -lmingwthr
>>> d -lmingw32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingwthrd 
>>> -lmingw32 -lgcc -lmoldname -lmsvcrt
>>>
>>> What am I  going wrong ?
>>
>>
>>
>> Why do you need to explicitly link in all these libraries?
>> (Or are you showing the final output of compiling with "g++ -v"?
>> BTW, you *are* compiling this with "g++" - not "gcc" - aren't
>> you?)
>>
>> AFAICT, you just need to link in like:
>>
>> g++ -mthreads -o exename all-your-object-files -lws2_32 -lnetapi32
>>
>> Does this also not work?
>>
>> Ranjit.
>>
>> _________________________________________________________________
>> High ISD bills? Get a phone card. http://www.msn.co.in/webtelephony 
>> Call US for just Rs. 5
>>
>>
>>
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> MinGW-users mailing list
> MinGW-users AT lists DOT sourceforge DOT net
> 
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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