简体   繁体   English

wmware编译cpp文件linux

[英]wmware compile cpp file linux

I've installed wmware player on my pc (I have windows vista 32 bit). 我在PC上安装了wmware Player(我有Windows Vista 32位)。 The virtual machine that I need to use is has linux. 我需要使用的虚拟机是linux。 I've set the shared folder and I go to it with my virtual machine. 我已经设置了共享文件夹,并使用虚拟机进入了该文件夹。 The problem is that linux doesn't compile my cpp file. 问题是linux无法编译我的cpp文件。 I write: 我写:

g++ helloworld.cpp -o helloworld

and nothing happen. 并没有任何反应。 I don't know why. 我不知道为什么 The only error given is when I start the virtual machine, it says: 给出的唯一错误是当我启动虚拟机时,它说:

Binary translation is incompatible with long mode on this platform. Long mode will
be disabled in this virtual environment. Applications requiring long mode will not
function properly as a result. See http://vmware.com/info?id=152 for more details.

You are trying to run a 64-bit VM on a machine that doesn't support 64-bit. 您正在尝试在不支持64位的计算机上运行64位VM。 Which makes sense, since 32-bit Windows isn't a suitable host for a 64-bit VM - although technically it would be possible to create such a system, it's full of messy situations that are much easier to deal with if the host system has at least as many bits as the VM. 这是有道理的,因为32位Windows不适用于64位VM的主机-尽管从技术上讲,可以创建这样的系统,但到处都是混乱的情况,如果使用主机系统则更容易处理具有至少与VM一样多的位。

You either need to get a VM that is a 32-bit install, or upgrade your windows to 64-bit (assuming you have a 64-bit capable processor, of course!) 您要么需要获得32位安装的VM,要么将Windows升级到64位(当然,假设您具有支持64位的处理器!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM