c++ - 从二进制 dll 中删除 protobuf-lite C++ 编译路径字符串
问题描述
这个问题与Remove protobuf c++ compiled path string from binary的问题相同。
我在 Visual Studio 2017 中使用 Protobuf 3.15.8 lite。我编译了 lite 版本 .lib 并编译了我自己的 dll 以在 C++ dll 和 C# 程序之间进行转换。我确实在 Visual Studio 中设置了发布设置,例如删除调试信息等,并将 protobuf.lib 更改为 protobuf-lite.lib 以及该问题中的其他答案。
生成的dll仍然包含以下路径(只有这四个):
D:\{mypath}\protobuf-3.15.8\src\google\protobuf\message_lite.cc
D:\{mypath}\protobuf-3.15.8\src\google\protobuf\wire_format_lite.cc
D:\{mypath}\protobuf-3.15.8\src\google\protobuf\arena.cc
D:\{mypath}\protobuf-3.15.8\src\google\protobuf\parse_context.h
我还能做哪些配置来解决这个问题?是什么导致了这个问题?
解决方案
推荐阅读
- javascript - JavaScript:解决算法问题
- css - 在闪亮的文本行中更改一个单词/子字符串的字体
- java - 我对这段代码有疑问(无法解析方法:'equals(java.lang.String)
- angular - laravel JWTAuth::attempt 在 heroku 上崩溃
- javascript - 待办事项列表应用程序和列表项长度问题
- javascript - 带有路由器 dom Navlinks 的 React-bootstrap Navbar
- excel - Excel 数据表格
- c++ - C ++无法从'KeyValue转换参数1
*' 到 'const T &' - amazon-web-services - 在 Vue + Vuetify 单个文件组件中将图像添加到工具栏
- spring-boot - 带有Tomcat+Spring-Boot和配置共享机制的Docker Base Image