DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 54NDnL9q1056755 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 54NDnL9q1056755 X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B834A3857359 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B834A3857359 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748008149; cv=none; b=oXIRC2spEVW38tEoO9ScJUe4AZAp8xb7smRbfRTncaQc8jS3tvI4CJoMpyLQMStP/52qMXCp3+HOSv9jb73KwI3sR4T2dNogT81U976XPhtqaxYjRECNSeXYER4Nl8vhFhxcuwQEWDp/5uN6+ikFx+GsID6ItDHllD1/VPzgmvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748008149; c=relaxed/simple; bh=kUclZvI/mVpGUti90+AONoj9V1EYOEBjypAly5AKMfw=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=gGS5lpd/cojnnNNozHijBovAnqDirbqsGIfyzCGRjhIu61QejzvkpDSaW1T/UnveHcMCIxHPMcT6UML6BECClMyUDU31J0f+XVSTr+hro5+vqBFPDrj8wc8go5zzYu0M5OHPVYhqgyCdETdKe9XZb7larDu3cvi/SocZCLLiEjk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B834A3857359 X-Authority-Analysis: v=2.4 cv=AfG3HWXG c=1 sm=1 tr=0 ts=68307cd4 a=qUfFRToiTI0hwv9vP0yqsA==:117 a=qUfFRToiTI0hwv9vP0yqsA==:17 a=IkcTkHD0fZMA:10 a=dt9VzEwgFbYA:10 a=UXp7rZ135JgA:10 a=w_pzkKWiAAAA:8 a=4Os-GRT8DRb7L466alYA:9 a=QEXdDO2ut3YA:10 a=daI9ojH3vpgA:10 a=MP2Ns1xdqCcA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=x3vGyVeL1kjphkeRFRfl:22 Message-ID: <50facd13-65c9-48d7-addc-07e69962410c@slipbits.com> Date: Fri, 23 May 2025 06:49:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: gcc links to libcmain when generating a dll To: Jon Turney Cc: cygwin AT cygwin DOT com References: Content-Language: en-US In-Reply-To: X-Antivirus: Norton (VPS 250523-2, 5/23/2025), Outbound message X-Antivirus-Status: Clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5707.bluehost.com X-AntiAbuse: Original Domain - cygwin.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - slipbits.com X-BWhitelist: no X-Source-IP: 70.187.149.156 X-Source-L: No X-Exim-ID: 1uISln-00000002AlD-2DUw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ip70-187-149-156.oc.oc.cox.net ([192.168.1.7]) [70.187.149.156]:64064 X-Source-Auth: home AT slipbits DOT com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: c2xpcGJpdHM7c2xpcGJpdHM7Ym94NTcwNy5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfGahJPa5j006BPX/27YVJJvQ6dHR6uELWlXjPFiGdTt89NAYZz1BBj0OZyteYldIUYBENspTVKzDymxFixsPbYW0dFgQCeExtrB3JQ0G8g7Gh2mgEaA0 PBD5vNqoLuj3XtYsEorF/LoZr8RHBXW1+y2xqjrWnSR/EunrzkOan2j+a/CgQq/4CHB1tzXAWal5arWjyt73wkpleePTcPk/zig= X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: skidmarks via Cygwin Reply-To: skidmarks Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Thanks. Just downloaded all the documents (the easy part), now comes the reading. art On 5/23/2025 6:40 AM, Jon Turney wrote: > On 23/05/2025 14:30, skidmarks via Cygwin wrote: > [...] >> Thanks! >> >>> g++ -shared -flinker-output=dyn -o slip.dll *.o >> >> ran with not errors. >> >> Is there any documentation available on cygwin specific issues? >> This seems like a question that I should be able to answer on my >> own. > > Indeed. We do ask people to read the FAQ before posting, and: > > https://cygwin.com/faq.html#faq.programming.dll-building > > points to > > https://cygwin.com/cygwin-ug-net/dll.html > > which is in need of updating, but mentions that you should use '-shared'. > > But this isn't actually a Cygwin specific question. '-shared' is > actually the right flag to use everywhere. > > > One residual question that a cygwin specific manual may answer> is > why libcmain.a was included at all. > > Because the linker thinks you are making an executable, which has to > have a main function. -- 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