编译 C++在 ESXi 3.5 上运行的代码
我正在尝试编译一个简单的 C++ 程序以在 ESXi 3.5 控制台窗口中运行。看来我链接了错误的库...是否有某处描述的设置 - 我必须使用哪个版本的 G++ 和库才能这样做?
I'm trying to compile a simple c++ program to run inside ESXi 3.5 console window. It seems I'm linking with wrong libraries... Is there a setup described somewhere - which version of G++ and libraries do I have to be using in order to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我解决问题的方法。我执行了以下编译操作:
将所有显示为子文件夹 ESXi-3.5-lib 依赖项的库复制到。就我而言,它们是:
<前><代码>ld-linux.so.2
libc.so.6
libgcc_s.so.1
libm.so.6
libstdc++.so.5
向 gcc 添加了以下开关:
以下是我的最终构建命令:
Here's how I resolved the issue. I did following to compile:
Copied all libraries that showed up as dependencies to subfolder ESXi-3.5-lib. In my case they were:
Added following switches to gcc:
Following was my final build command: