Visual C++ - Linking plugin DLL against EXE?

后端 未结 4 1264
甜味超标
甜味超标 2021-02-04 13:34

I\'m in the process of porting a large C++ application from Linux (gcc) to Windows (Visual C++ 2008) and am having linker issues with plugins. On Linux this wasn\'t an issue, as

4条回答
  •  北海茫月
    2021-02-04 13:50

    What do you mean by "runtime symbol lookup"? Do you mean dynamically loading libraries using dlopen and dlsym and so on? The equivalents in Windows are called LoadLibrary and GetProcAddress.

    In windows, you don't export symbols from a executable. You should only export them from a dll. The right way to solve your problem is to rearchitect so that the exported symbols are in a dll that the executable and other plugin dlls can link against.

提交回复
热议问题