X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 020E438582A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1670085629; bh=vO8wDVV/DFdzsGeqqP2V+2clzqYTKyyQUXEaPE6TeCU=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=pLDvjnrqwdXjmg0HBhcj4m1roBVTHVs1cIzs8D3LYeJ/vgLsi9vLNIgkOJjbXFrgm ZUpyvxFK9hbFRTRIeHas6M07x96Q7hY9AvHlNsUXL5gBeoElSy5/HNVk2YrHyYSCWn r5HxumgGM4h8IcAvDj5puuJYytgV+hNzSNBPE8wY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0B2863858D20 X-Yandex-Fwd: 1 Date: Sat, 3 Dec 2022 19:23:14 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <14710292354.20221203192314@yandex.ru> To: Jose Isaias Cabrera , cygwin AT cygwin DOT com Subject: Re: Building SQLite3 CLI without In-Reply-To: References: MIME-Version: 1.0 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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... -- 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