可以是任意PE格式的、没有strip的DLL。 // so2lib.cpp : create a lib export table for vc by dll/so. // 1.2 by philsong@techtrex.com // modify base at a project "CodeProject Create your Proxy DLLs automatically", // reference 《为无LIB的DLL制作LIB函数符号输入库 - VC知识库文章》 // and resolve the problem of article 《MinGW 编译的DLL在VC中使用的问题》 #include <windows.h> #include <stdio.h> #include <tchar.h> #include <vector> using namespace std; struct EXPORT_ITEM { bool IsOnlyOrdinal; char in[300]; char en[300]; int o; int h; }; vector<EXPORT_ITEM> v; #pragma warning(disable : 4996) int main(int argc, char* argv[]) { char szCmd[64] = {0}; char szExportFile[64] = {0}; char szDefFile[64] = {0}; if (argc != 2) { printf("so2lib. Copyright (C) philsong@techtrex.com/r/n"); printf("Usage: so2lib <so name>/r/n"); printf("===