delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/17/14:05:14

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <73d571720807171104r57c488b9q89e6dbebb6668b51@mail.gmail.com>
Date: Thu, 17 Jul 2008 15:04:40 -0300
From: "Douglas Gemignani" <douglas AT gemignani DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Build DLLs for windows
In-Reply-To: <18559.31669.129214.932667@intel.local>
MIME-Version: 1.0
References: <73d571720807170717r1377e0f7l89a2f840147e3733 AT mail DOT gmail DOT com> <18559 DOT 31669 DOT 129214 DOT 932667 AT intel DOT local>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Yes, i already used the -mno-cygwin option using the cygwin gcc, but
it produces a lot of errors when linking errors against a library
(openssl), and if i use the mingw gcc, it can't find the library.
Since i compiled that using the cygwin.

There is a nice tutorial here
http://www.delorie.com/howto/cygwin/mno-cygwin-howto.html

I still have issues building a .dll as output, as well it's .def file,
i don't know if the gcc can produce that, or if I have to use an
external tool for generating those.

As far as I understand, using the mingw gcc I could produce more
friendly code than using the -mno-cygwin parameter. Is that right?
Since cygwin gcc doesn't have the -lsdc++.

I just would like to have a cygwin interface-like (use tool-binaries
like ls, and other unix stuff) but having a native windows binary so
i'm a bit confuse what way should I take.

Thanks for your help

[]s
Douglas


On Thu, Jul 17, 2008 at 2:04 PM, Ken Jackson <cygwin AT jackson DOT io> wrote:
> Not sure about .LIB and DLL, but to compile an executable that
> will run without cygwin1.dll, use this switch:  -mno-cygwin
>
> -Ken Jackson
>
> Douglas Gemignani writes:
>  > I read that i would need to use the cygwin1.dll, but I don't
>  > understand how. I hope I can find some guidance here!
>  >
>  > Thanks!
>  > []s
>  > Douglas
>
> --
> 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/
>
>

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