From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward107o.mail.yandex.net (forward107o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::205]) by sourceware.org (Postfix) with ESMTPS id 0B2863858D20 for ; Sat, 3 Dec 2022 16:40:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0B2863858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from forward503p.mail.yandex.net (forward503p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:122]) by forward107o.mail.yandex.net (Yandex) with ESMTP id B1B696AFBC98; Sat, 3 Dec 2022 19:40:08 +0300 (MSK) Received: from myt6-fe378243d6ea.qloud-c.yandex.net (myt6-fe378243d6ea.qloud-c.yandex.net [IPv6:2a02:6b8:c12:488f:0:640:fe37:8243]) by forward503p.mail.yandex.net (Yandex) with ESMTP id 16890110164D; Sat, 3 Dec 2022 19:35:01 +0300 (MSK) Received: by myt6-fe378243d6ea.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 0ZXnA2JVna61-9Iwp8VHg; Sat, 03 Dec 2022 19:35:00 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1670085300; bh=j2NNqDZnoWipQRJ8gIXzsIlqHR9AD7wxmnA7dEFVmOU=; h=In-Reply-To:Subject:Date:References:To:Message-ID:Reply-To:From; b=kwi8+yTy/pk9PEZdTFxfOpzBvJVOO+m4KgVzPkeMRdcr6Q7SRNvWTVuwFlDCbSfWs XDC5Sj/4uh5Rpz0ykeGYRXFzVsH03o3YxUo5Ino/OQoSxfSTQv98XUpx8zxjxRi9jN m6ri1ozK9yTo2NIuI3ObUFynzXy4R7T01DPlTas4= Authentication-Results: myt6-fe378243d6ea.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sat, 03 Dec 2022 16:23:14 -0000 Date: Sat, 3 Dec 2022 19:23:14 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <14710292354.20221203192314@yandex.ru> To: Jose Isaias Cabrera , cygwin@cygwin.com Subject: Re: Building SQLite3 CLI without In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_THEBAT,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Greetings, Jose Isaias Cabrera! > 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 To the best of my knowledge, you should not use cross-compilers directly. > 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. Yes, you should use a cross-compiler and specifically set the target to be windows native executable. -- With best regards, Andrey Repin Saturday, December 3, 2022 19:21:13 Sorry for my terrible english...