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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Tony Kelman , "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: References: , In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit 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