Send MinGW-Notify mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."
Please do not reply to this notification; the sender address is unable to
accept incoming e-mail. If you wish to unsubscribe you can do so at
https://lists.osdn.me/mailman/listinfo/mingw-notify.
Today's Topics:
1. [mingw] #48962: Error starting c++ program linking to
libstdc++-6.dll on Windows 9x without KernelEx
(MinGW Notification List)
2. [mingw] #48962: Error starting c++ program linking to
libstdc++-6.dll on Windows 9x without KernelEx
(MinGW Notification List)
----------------------------------------------------------------------
Message: 1
Date: Sun, 31 Dec 2023 21:31:35 +0000
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #48962: Error starting c++ program
linking to libstdc++-6.dll on Windows 9x without KernelEx
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=UTF-8
#48962: Error starting c++ program linking to libstdc++-6.dll on Windows 9x
without KernelEx
Open Date: 2023-12-30 10:41
Last Update: 2023-12-31 21:31
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/48962
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=48962
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2023-12-31 21:31 Updated by: keith
Comment:
Reply To qiannangong
LIBSTDC++-6.DLL bundled in latest package requires an export named
CreateHardLinkW in KERNEL32.DLL, which seems not to be available on vanilla
Windows 9x platform...
That may very well be the case, but can you please provide more details of the
exact manner in which it fails?
FWIW, we build libstdc++-6.dll from unmodified sources, maintained by the
upstream GCC project; that project no longer considers Win9x to be a supported
platform, so it becomes increasingly difficult — although not necessarily
impossible — for us to continue to support it. At present, our kernel32.def
specifies CreateHardLinkW@12 as a universally exported symbol, from
kernel32.dll; if, as may well be the case, that isn't true of Win9x versions,
then we may need to substitute an alternative implementation, to perform a
GetProcAddress() probe, rather than assume universal availability. However,
since I no longer use any version of Windows as a day-to-day OS, and I have
virtualized support for only WinXP and Win7, I have no way to test such a
solution, (but I may be able to offer advice on a suitable implementation).
However, A static linked program may work only if it does not use the APIs may
refer to the CreateHardLinkW.
Can you provide a small, self contained, compilable example, to illustrate this
technique, please?
---------------------------------------------------------------------
Ticket Status:
Reporter: qiannangong
Owner: (None)
Type: Issues
Status: Open
Priority: 5 - Medium
MileStone: (None)
Component: (None)
Severity: 5 - Medium
Resolution: None
---------------------------------------------------------------------
Ticket details:
LIBSTDC++-6.DLL bundled in latest package requires an export named
CreateHardLinkW in KERNEL32.DLL, which seems not to be available on vanilla
Windows 9x platform...
However, A static linked program may work only if it does not use the APIs may
refer to the CreateHardLinkW.
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net/projects/mingw/ticket/48962
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=48962
------------------------------
Message: 2
Date: Sun, 31 Dec 2023 21:44:46 +0000
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #48962: Error starting c++ program
linking to libstdc++-6.dll on Windows 9x without KernelEx
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=UTF-8
#48962: Error starting c++ program linking to libstdc++-6.dll on Windows 9x
without KernelEx
Open Date: 2023-12-30 10:41
Last Update: 2023-12-31 21:44
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/48962
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=48962
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2023-12-31 21:44 Updated by: keith
Comment:
Reply To keith
... but I may be able to offer advice on a suitable implementation ...
FWIW, this (compilable, but otherwise untested) implementation may suffice, as
a replacement for the unconditionally exported CreateHardLinkW@12 export spec:
#include "legacy.h" #include <winbase.h> #include <winerror.h> WINBASEAPI
BOOL WINAPI CreateHardLinkW (LPCWSTR NewFile, LPCWSTR ToFile,
LPSECURITY_ATTRIBUTES attrib) { typedef BOOL WINAPI (*api)( LPCWSTR, LPCWSTR,
LPSECURITY_ATTRIBUTES ); static void *call = API_UNCHECKED; return ((call
= __kernel32_entry_point( call, __FUNCTION__ )) != NULL) ? ((api)(call))(
NewFile, ToFile, attrib ) : ERROR_OLD_WIN_VERSION; }
---------------------------------------------------------------------
Ticket Status:
Reporter: qiannangong
Owner: (None)
Type: Issues
Status: Open
Priority: 5 - Medium
MileStone: (None)
Component: (None)
Severity: 5 - Medium
Resolution: None
---------------------------------------------------------------------
Ticket details:
LIBSTDC++-6.DLL bundled in latest package requires an export named
CreateHardLinkW in KERNEL32.DLL, which seems not to be available on vanilla
Windows 9x platform...
However, A static linked program may work only if it does not use the APIs may
refer to the CreateHardLinkW.
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net/projects/mingw/ticket/48962
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=48962
------------------------------
Subject: Digest Footer
_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify
------------------------------
End of MinGW-Notify Digest, Vol 61, Issue 1
*******************************************