ITeye博客

protobuf

共 1 篇文章

导出protobuf生成的c++结构

protoc -I . --cpp_out=dllexport_decl=XXXXX_DLL_API:. --csharp_out=. xxxxxx.proto 补充: 工程配置中的预定义宏需要加上XXXXX_DLL_API=__declspec(dllexport); 这样的话产生的头文件对于本工程来说就是在导出,对于引用工程来说就是导入了

2024-12-09 10:01 · protobuf