July 08, 2006 Problems getting started | ||||
---|---|---|---|---|
| ||||
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 |
July 09, 2006 Re: Problems getting started | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kevin Commin | "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 |
Copyright © 1999-2021 by the D Language Foundation