久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

創建 DLL 時導出所有符號

Export all symbols when creating a DLL(創建 DLL 時導出所有符號)
本文介紹了創建 DLL 時導出所有符號的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

使用 VS2005,我想創建一個 DLL 并自動導出所有符號,而無需在任何地方添加 __declspec(dllexport) 并且無需手動創建 .def 文件.有沒有辦法做到這一點?

With VS2005, I want to create a DLL and automatically export all symbols without adding __declspec(dllexport) everywhere and without hand-creating .def files. Is threre a way to do this?

推薦答案

可以做到...

我們在這里的做法是使用鏈接器的/DEF 選項來傳遞一個 "模塊定義文件" 包含我們的導出列表.我從您的問題中了解到您了解這些文件.但是,我們不是手工完成的.導出列表本身由 dumpbin/LINKERMEMBER 命令創建,并且通過一個簡單的腳本將輸出處理為模塊定義文件的格式.

The way we do it here is to use the /DEF option of the linker to pass a "module definition file" containing a list of our exports. I see from your question that you know about these files. However, we do not do it by hand. The list of exports itself is created by the dumpbin /LINKERMEMBER command, and manipulating the output via a simple script to the format of a module definition file.

設置工作量很大,但它允許我們編譯在 Windows 上為 Unix 創建的沒有 dllexport 聲明的代碼.

It is a lot of work to setup, but it allows us to compile code created without dllexport declarations for Unix on Windows.

這篇關于創建 DLL 時導出所有符號的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

boost_1_60_0 .zip installation in windows(Windows 中的 boost_1_60_0 .zip 安裝)
How do I get console output in C++ with a Windows program?(如何使用 Windows 程序在 C++ 中獲得控制臺輸出?)
How do I calculate the week number given a date?(如何計算給定日期的周數?)
OpenCV with Network Cameras(帶有網絡攝像機的 OpenCV)
Getting started with OpenCV 2.4 and MinGW on Windows 7(Windows 7 上的 OpenCV 2.4 和 MinGW 入門)
The program can#39;t start because libgcc_s_dw2-1.dll is missing(程序無法啟動,因為缺少 libgcc_s_dw2-1.dll)
主站蜘蛛池模板: 国产精品久久久久久久久久久久久 | 久久精品一区二区三区四区五区 | 国产精品一区二区av | 天天拍夜夜操 | 亚洲综合伊人 | 日日干干 | 久久三级视频 | 日本在线看片 | 国产精品主播一区二区 | 性巴克成人免费网站 | 国产伦精品一区二区三区视频黑人 | 成人欧美视频 | 亚洲人成在线观看 | 国产成人精品一区二区三区在线 | 亚洲第一免费视频 | 婷婷激情六月 | 久久在线 | 美女免费视频网站 | 色一情一乱一乱一区91av | 91久久久久久久 | 日韩黄色录像 | 日韩精品三级 | 久久免费小视频 | 91爱爱网| 久久机热 | 成人网页 | 特一级黄色片 | 欧美激情一区二区三区 | 成人9ⅰ免费影视网站 | 免费网站观看www在线观 | 国产精品国产三级国产专区53 | 欧美精品综合 | 高清视频一区二区 | 亚洲777 | 黄频在线观看 | 可以在线观看的av | 久热中文字幕 | 涩涩在线 | 一级大片免费看 | 国精产品99永久一区一区 | 欧美精品综合 |