Skip to content

Instantly share code, notes, and snippets.

@ubnt-intrepid
Created February 24, 2016 23:56
Show Gist options
  • Select an option

  • Save ubnt-intrepid/1e324a4c68db8fe1dda2 to your computer and use it in GitHub Desktop.

Select an option

Save ubnt-intrepid/1e324a4c68db8fe1dda2 to your computer and use it in GitHub Desktop.

MINGW用のライブラリ作成手順

  1. 開発者コマンドプロンプトでシンボル名を出力する
> dumpbin /export hogehoge.dll
  1. 以下の.defファイルを作成する
LIBRARY HOGEHOGE
EXPORTS
  aa
  bb
  ...
  1. Msys2上で以下を実行
$ dlltool -d hogehoge.def -l libhogehoge.a hogehoge.dll
  1. できた.aにパス通す
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment