[MinGW-Notify] [mingw] #48962: Error starting c++ program linking to libstdc++-6.dll on Windows 9x without KernelEx

Back to archive index
MinGW Notification List mingw****@lists*****
Mon Jan 1 06:44:46 JST 2024


#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 at 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



More information about the MinGW-Notify mailing list
Back to archive index