I want to compile a simple hello-world-style program using the Windows command line.
cl file_name.c
is easy enough. Now I want to do the same thing in 64 Bit. What should I do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use a version of the cl.exe compiler which emits x64 code. Which one depends a bit on your setup.
Let’s consider the case you’re on a 64 bit machine. For this you’ll need to use the compiler which lives at
If you’re on a 32 bit machine you’ll need to use the cross compiler located at