I have an existing C++ code for linux. I have to convert the whole thing into 64-bit and the .rpm that is generated from this code to should br 64-bit. How can I accompalish this?
I am a VC++ Programmer, new to linux.
@moderator, I am not sure if this is the right section to post this question. If you don't consider this post to be in right section please move it accordingly
There is a switch in gcc, -m32, -m64. So give -m64 and it will compile your program for 64bit OS. But this will not automatically make your application 64 bit, it will just work on 64bit OS. If any equivalent 64 bit data exists, that would be fine, for others you have to explicitly use 64 bit data types.