duanemei2194
2014-07-15 19:18
浏览 215

在Go中使用Windows DLL库,针对Linux和Mac OS X编译

I just wonder is there a chance to use proprietary windows dlls in my go project, compiling for mac osx and linux?

图片转代码服务由CSDN问答提供 功能建议

我只是想知道是否有机会在我的go项目中使用专有的Windows dll,为Mac OS X和Linux进行编译?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dongzhi1950 2014-07-15 21:59
    已采纳

    No, you can't use windows dlls on Linux / OSX.

    However if you really really have to do that, you could always ship your software with a pre-compiled wine like TeamViewer does and few "almost-native" games on Steam.

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • dotelauv682684 2014-07-15 19:20

    I have not used Go! to much, but assuming these are the same kinds you would use in c++, then no, you cannot do this natively. You would need to use something such as wine (I am not sure if that builds on mac osx though)

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题