On Saturday 31 May 2025 21:09:27 LIU Hao wrote: > 在 2025-5-31 20:26, Pali Rohár 写道: > > Some of them are documented as PRIVATE in MS linker documentation: > > https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-warning-lnk4104 > > https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-warning-lnk4222 > > > > If both llvm and binutils supports PRIVATE keyword in def files then we > > could mark them as PRIVATE. Otherwise put ';' at beginning of the line > > as a comment. > > Thanks for the links. I have updated my list to include all of them. > > When generating an import lib, `PRIVATE` has the same effect as commenting > out the symbol. It is a normal keyword when building a DLL; I don't see why > it's not supported.
I tested PRIVATE with GNU dlltool and it is working fine as expected. symbol is not put into import library at all. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
