mingw 3.4.5 missing dlfcn.h?

前端 未结 6 2201
遇见更好的自我
遇见更好的自我 2021-02-20 09:33

is it possible that my mingw 3.4.5 installation is faulty? or is this provided on some other library floating around?

in case you are wondering, dlfcn.h is where stuff l

6条回答
  •  有刺的猬
    2021-02-20 10:12

    I know this is an old question, but nonetheless still relevant today, regardless of the version of GCC from MinGW.org which may be in use.

    Those who have observed that MinGW is really intended for use with the native Win32 APIs, based on LoadLibrary() and GetProcAddress(), rather than the POSIX specific APIs declared in dlfcn.h, are completely correct; thus, MinGW.org has not traditionally provided any implementation of the dlfcn.h API functions.

    However, as of mingwrt-3.21, I needed to implement MinGW functionality which is akin to the POSIX use of dlsym() on the RTLD_DEFAULT address space. Consequently, from this version of the MinGW runtime onwards, I intend to maintain a conforming implementation of the POSIX dlfcn.h APIs, as a wrapper around the LoadLibrary(), GetProcAddress(), and PSAPI.DLL native Win32 APIs.

提交回复
热议问题