开发者

Building 64bit libraries

开发者 https://www.devze.com 2022-12-09 12:00 出处:网络
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

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!


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消