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

后端 未结 5 509
悲&欢浪女
悲&欢浪女 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:36

    G'day,

    Not sure if this is going to be possible as there is too much that can vary between compilers from different vendors apart from just the name mangling. Things such as:

    1. this handling,
    2. layout and contents of v-tables,
    3. class layout,
    4. parameter sequence,
    5. register handling,
    6. return value handling,
    7. etc.

    I'd be interested to see if it was possible though.

提交回复
热议问题