Re: gcc links to libcmain when generating a dll

2025-05-26 Thread Brian Inglis via Cygwin
On 2025-05-26 12:27, Arthur Schwarz wrote: Hi Brian; I'm trying to track down the gcc linker (ld) manual. Any idea where I can find it? $ cygcheck -f /usr/bin/ld binutils-2.44-1 https://cygwin.com/packages/summary/binutils-src.html https://www.gnu.org/softwar

gcc links to libcmain when generating a dll

2025-05-26 Thread Arthur Schwarz via Cygwin
Hi Brian; I'm trying to track down the gcc linker (ld) manual. Any idea where I can find it? I've looked at the gcc site (gcc.gnu.org/onlinedocs/) and it's not there. I did a google search and found a 1998 linker manual. I looked at the local cygwin (/usr/share/doc) and there's no ld. You

Re: gcc links to libcmain when generating a dll

2025-05-23 Thread skidmarks via 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 ava

Re: gcc links to libcmain when generating a dll

2025-05-23 Thread Jon Turney via Cygwin
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

gcc links to libcmain when generating a dll

2025-05-23 Thread skidmarks via Cygwin
> On 2025-05-22 12:37, Arthur Schwarz via Cygwin wrote: > > I can't figure this one out. > > > >  > clear;g++ -flinker-output=dyn -o slip.dll *.o > > > > generates: > > > > /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /usr/lib/ > > gcc/x86_64-pc-cygwin/12/../../../../li

Re: gcc links to libcmain when generating a dll

2025-05-22 Thread Brian Inglis via Cygwin
On 2025-05-22 12:37, Arthur Schwarz via Cygwin wrote: I can't figure this one out. > clear;g++ -flinker-output=dyn -o slip.dll *.o generates: /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /usr/lib/ gcc/x86_64-pc-cygwin/12/../../../../lib/libcygwin.a(libcmain.o): in fu

gcc links to libcmain when generating a dll

2025-05-22 Thread Arthur Schwarz via Cygwin
I can't figure this one out. > clear;g++ -flinker-output=dyn -o slip.dll *.o generates: /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../lib/libcygwin.a(libcmain.o): in function `main': /usr/src/debug/cygwin-3.6.1-1/winsup/cygw