How to link to VS2008 generated .libs from g++

后端 未结 5 541
悲&欢浪女
悲&欢浪女 2021-01-23 10:17

I am trying to build a dll using mingw g++ under cygwin.

I have .h files that refer to objects exported by a .dll that was build using MS Visual Studio 2008. I link to t

5条回答
  •  长发绾君心
    2021-01-23 10:33

    I agree with Rob Wells comment, there are a lot of things in C++ that may break.

    Something which should be easier, safer, and possible would be to use plain C functions, as the main thing to worry about there is the calling convention and potentially packing and alignment of structs.

提交回复
热议问题