delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/05/29/14:27:23

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:from:to:subject:date:message-id:references
:in-reply-to:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=p+V7zcyqIXCkeDEV
z9ZuQkpmYNavypElNAGN/syj1O++J9NQVyVh6LtOBsto/WA4dufaNMsl1WZ1MT9X
gY86nZ2DZZgMcJnLG+U7KA26v8h2HNZdq47GjQBJSy4IN7N28xXk02df8cgnYxiQ
u5IZwnPU0uM4xlX4B9rQ7f+af1Y=
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:from:to:subject:date:message-id:references
:in-reply-to:mime-version:content-type
:content-transfer-encoding; s=default; bh=DoMz1fxwl96gtU6cZrfPR9
/qPtY=; b=cca9fb5vInZRshF8UyoQdlXfZDiJaVVsxuwUKvkgTlKQTSpEcI4CEJ
dT35K5ZPcQCcuFlbeWFDaJzqwZ4iiJRv16k2lhpEZzyWOsO/iBh/rBQx9SOussLx
4xBZqZV71H7H9ay5R9rz3E17RO6nEvrHZGBwH3KMfkt765AY3lE0k=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative, H*c:HHH
X-HELO: EUR01-DB5-obe.outbound.protection.outlook.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GgDIKGFGpMbiaWaGpmpOotV3tF/7ojrJi/YSxEqcTJw=; b=fle4k7GnFhhltsWo55VDaJIV2QLmeKZDRu1EG/45tPrA36LW+ROXkH/vY6vxKs3sSi/tBLn1FuVEXMW2QLuPoYQz5ke3Mhqubyu09jIqfwkMAn01a8yEgGrHT9DDmIkp0g0S0FNQvFJ5KrphhRd2iop5wJE5G+MQp7+Y0A/B8JlTS8TZW+7rkmxEPUm6TC6yrpRG6KTuySdh5JdTf4gGml2i3sCmQaXNP9oUxUy4Vszw2LgWF9zLrpnxBt7QqpdfCMrtTKOUSidgPE6Hd8NVyIY4WvR43TFLYOMt8mCpYDLGLcOP3DQav+VHxa/53T0yK/hQ+31tdaB1+1zMwFey0w==
From: Jose Isaias Cabrera <jicman AT outlook DOT com>
To: Tony Kelman <tony AT kelman DOT net>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: How to build a DLL without cygwin DLL dependencies
Date: Wed, 29 May 2019 18:27:07 +0000
Message-ID: <DB7PR01MB5386151A2BEF700669338C94DE1F0@DB7PR01MB5386.eurprd01.prod.exchangelabs.com>
References: <DB7PR01MB5386F8869A992304E8979E4DDE1F0 AT DB7PR01MB5386 DOT eurprd01 DOT prod DOT exchangelabs DOT com>,<CY4PR22MB0773AD002D202CE1D084A227A71F0 AT CY4PR22MB0773 DOT namprd22 DOT prod DOT outlook DOT com>
In-Reply-To: <CY4PR22MB0773AD002D202CE1D084A227A71F0@CY4PR22MB0773.namprd22.prod.outlook.com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x4TIRLOR017050

Tony Kelman, on Wednesday, May 29, 2019 01:55 PM, wrote...
>>
>> gcc -shared sqlite3.c -o sqlite3.dll
>>
>> to build it, but this command creates a dependency for cygwin1.dll.
>> Is there any way to build the dll as a standalone DLL with no
>> dependency?  Thanks.
>
>Yep, you want the mingw-w64 cross compiler, x86_64-w64-mingw32-gcc
>(or i686-w64-mingw32-gcc for 32 bit).

Thanks for the prompt reply, Tony.

So, I downloaded "i686-w64-mingw32-gcc" from the setup packages and ran,

i686-w64-mingw32-gcc -shared sqlite3.c -o sqlite3.dll,

but it still wants me to add other DLLs.  I just want to drop the sqlite3.dll just created in another spot and run a tool using that without need of any other DLL. I know I can do it with MinGW, but I don't want to install two systems on my computer.  I know I am missing something because I know other folks have done it before.  I duckduckgo'ed some answers, but have not found anything but "use MinGW".  Is this even possible with cygwin and its packages?  Thanks for the support.

josé



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