www.digitalmars.com         C & C++   DMDScript  

c++ - Problems getting started

reply Kevin Commin <Kevin_member pathlink.com> writes:
Could someone walk me through the steps of creating a basic c program with
Digital Mars, such as the "hello world" program?  I checked the online
documentation, but at this point I am somewhat overwhelmed. I especially need
help figuring out which options to choose when starting the new project.

Thanks
Jul 08 2006
parent "Pavel Vozenilek" <pavel_vozenilek yahoo.co.uk> writes:
"Kevin Commin" wrote:

 Could someone walk me through the steps of creating a basic c program with
 Digital Mars, such as the "hello world" program?  I checked the online
 documentation, but at this point I am somewhat overwhelmed. I especially 
 need
 help figuring out which options to choose when starting the new project.
Hello World: C:\> cd \dm\bin C:\> dir dmc.exe ..... shows it ... C:\> copy con hello_world.c #include <stdio.h> int main() { printf("Hello World!\n"); return 0; } F6 Enter C:\> dir hello_world.c ..... shows it .... C:\> dmc hello_world.c ..... should work .... C:\> hello_world .... should print the text .... ..... cleanup .... C:\> del hello_world.* Once this work you may continue with setting PATH so that the compiler directory won't be polluted with temporary files, try to compile mini-application using more than one source file and so on. /Pavel
Jul 09 2006