To run your program, enter simple at the command prompt. The program displays this text and then exits: Hello, World! This is a native C program compiled on the command line. Congratulations, you've compiled and run a C program by using the command li
Compiling your C program using Cygwin. We will be using the gcc compiler on Cygwin to compile programs. 1) Launch Cygwin. 2) Change to the directory you created for this class by typing. cd c:/windows/desktop. 3) Compile the program by typing. gcc myProgr
if you want to use cygwin you should use the normal gcc syntax. g++ -o foobar foobar.cpp but that doesn't really play well with Visual C++. I advise you to take a look into Eclipse CDT if you prefer using GCC over the visual C++ compiler.
Post a Comment:
Showing 0 Comments: