Replacement for #import in Visual C++

前端 未结 6 1981
野的像风
野的像风 2020-12-23 21:27

We have large C++ project that we used to compile with the /MP switch to take advantage of multiple cores.

However, we recently brought in some code that uses #impor

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 21:46

    One option is to move the imports into a separate DLL and provide wrapper classes for them using an opaque pointer. Then disable /MP for that DLL only, and the rest of your build should be fine.

提交回复
热议问题