Reputation: 6010
I want to build 64bit libraries for some of my C++ components. Is it required to compile/link the libraries in OS running on physical machine directly? Or can i use a OS running as virtual machine in ESX server to build the libraries? Would i need to take care of anything if i am building in a virtual machine? Please advice
I was interested in 32/64bit for linux.
Thanks in advance!
Upvotes: 1
Views: 317
Reputation: 397
If the guest OS is 64-bit and you have a 64-bit compiler, there is not reason why you can't compile and run a 64-bit library/application in your virtualised OS.
Upvotes: 2
Reputation: 111336
This is a bit platform-specific. For example: on Windows I build the 64-bit binaries on a 32-bit machine (I have the 64-bit compiler installed with VS) and make sure that the correct redistributable pack is available on the target.
Upvotes: 1
Reputation: 107062
Depending on the compiler (what are you using?) you might even just need to pass the right options to it and it will compile it wherever you want - even on a 32-bit machine.
Upvotes: 1