Working with Visual Studios C++ manifest files

前端 未结 4 1199
梦谈多话
梦谈多话 2021-01-31 03:47

I have written some code that makes use of an open source library to do some of the heavy lifting. This work was done in linux, with unit tests and cmake to help with porting it

4条回答
  •  半阙折子戏
    2021-01-31 03:57

    If a third party DLL will allocate memory and you need to free it, you need the same run-time libraries. If the DLL has allocate and deallocate functions, it can be ok.

    It the third party DLL uses std containers, such as vector, etc. you could have issues as the layout of the objects may be completely different.

    It is possible to get things to work, but there are some limitations. I've run into both of the problems I've listed above.

提交回复
热议问题