mingw 3.4.5 missing dlfcn.h?

前端 未结 6 2184
遇见更好的自我
遇见更好的自我 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:08

    mingw is an implenentation of a compiler for windows (a gcc port) implementing the win32 API. The functions in dlfcn.h (dlopen/dlsym et. al.) are POSIX, not windows, so no win32 implementation exists. There may be a wrapper in msys or cygwin, but I fear that the differences between the windows DLL and the ELF shared library mechanisms means you'll simply need to port to the windows APIs.

提交回复
热议问题