I'm using Visual C++ Express Edition. But I'm working on a cross-platform project, so I'll need to try my code on Linux, MacOS and Solaris too. I was going to move to developing on Linux when the project is ready, but I discovered my VC++ version, which is free and thus very limited, doesn't support 64bit. So I'll need to try things on Linux. I read examples but I'm still not sure what works where: gcc -O3 -mpcu=v9 , something with m64, etc. So I'd like to know the answer to the following simple question: if I have a file called main.cpp and I want to compile it as a 64bit program, what do I type in the command line?
If you're writing for all these platforms, you may want to consider using gcc under cygwin on Windows. That way you'll likely be using the same compiler and you'll have an easier time.