www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Problems getting started

↑ ↓ ← 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
↑ ↓ → "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