Re: Linking to windows library

2024-09-18 Thread LIU Hao via Gcc
在 2024-09-18 23:04, slipbits 写道: Win10 x86-64 cygwin v3.5.4 I'm using g++ to link my object modules non-windows object module and g++ includes a windows library. The library seems to need to have a winMain function, which my code does not have, and generates a linker error. I don't know why

Linking to windows library

2024-09-18 Thread slipbits
Win10 x86-64 cygwin v3.5.4 I'm using g++ to link my object modules non-windows object module and g++ includes a windows library. The library seems to need to have a winMain function, which my code does not have, and generates a linker error. I don't know why there is an automatic need to lin