How does one import a dll into an Eclipse C++ project?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You don't import the library files themselves since they are binary code and of little use. Usually you get a binary lib/dll with a bunch of header files. You include the header files in your program source, use the functions from the lib in your progam. Finally, in the project build settings you specify in the linker step that you also want to link with the binary lib/dll. The product will be an executable that uses the binary libs..
This is not unique to eclipse by the way :)
回答2:
http://www.jinvoke.com/book/export/html/37 - For using the dlls in Java under Eclipse