delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/12/02/16:38:48

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3021E385840D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1670017084;
bh=USoVD8V6fm3WK46l8WFUwNksPYMqZu9SHHb1bTWBW40=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=yGyhc0mD8R/Mt/qG6NVL0MSJffCcNSh3T7CUex6k8w2X+N/zLRIIS+bv0fN6rbE8M
V4ThfSwrwFHmqoE/O2XnORzwggtxp9k7UJwvoIZ9V4oooMyXjiWW422XF8s2Q9fAJV
i2Z/JIZ6H6zaOs8GFAxV1dc1beSsrf/6iN+xwKsw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 80DD63858D20
Message-ID: <fd07602a-62d5-e72d-7363-825dc709b59b@oskog97.com>
Date: Fri, 2 Dec 2022 23:37:20 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.5.0
Subject: Re: Building SQLite3 CLI without
To: cygwin AT cygwin DOT com
References: <DB9P251MB00638FF81903EC8818615065DE179 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
In-Reply-To: <DB9P251MB00638FF81903EC8818615065DE179@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Oskar Skog via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Oskar Skog <oskar AT oskog97 DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 2B2LcTUP008256

On 2022-12-02 22:37, Jose Isaias Cabrera via Cygwin wrote:
> 
> Greetings and salutations!
> 
> I can build SQLite DLL and use it under Windows without any problem using this command:
> 
> i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll
> 
> And I can use that DLL outside cygwin without any problem. I can also build the SQLite3.exe tool using this command:
> 
>   i686-w64-mingw32-gcc -shared -static-libgcc shell.c -o sqlite3.exe
> 
> The problem is that when I run this sqlite3.exe outside the cygwin environment, it gives me the error:
> 
> "The code execution cannot proceed because cygwin1.dll was
> not found. Reinstalling the program may fix this problem."
> 
> Is there an option that I can do to build the tool without the need of the cygwin1.dll? I know that I can move the file in the same spot, but I want to create it without the need of it. Thanks for your support.
> 
> josé
> 

https://cygwin.com/faq/faq.html#faq.programming.static-linking

"No. If your program uses the Cygwin API, then your executable cannot 
run without cygwin1.dll. In particular, it is not possible to statically 
link with a Cygwin library to obtain an independent, self-contained 
executable."

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019