Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 15, 2007 quick help thing | ||||
---|---|---|---|---|
| ||||
hi, first time, so anyone able to like explain this a bit more? (it's the readme for installation): Too make it even more convenient, add c:\dm\bin to the PATH environment variable setting (c: is the drive it is installed on). To compile a simple hello.c program: \dm\bin\dmc hello will compile and link to create hello.exe. am i supposed to write "\dm\bin\dmc hello" somewhere? place "hello" somewhere? why's there a space between "dmc" and "hello"?.. alright, bye |
April 15, 2007 Re: quick help thing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rageleai | Rageleai skrev: > hi, first time, so anyone able to like explain this a bit more? > (it's the readme for installation): > > Too make it even more convenient, add > > c:\dm\bin > > to the PATH environment variable setting (c: is the drive it is > installed on). > > To compile a simple hello.c program: > > \dm\bin\dmc hello > > will compile and link to create hello.exe. > > > am i supposed to write "\dm\bin\dmc hello" somewhere? Yes, open a command prompt (start -> run -> cmd <enter>) The rest of the commands are entered on the command line that appear. change the active folder to the folder in which you have put hello.c: cd "\myprograms\testing" Then type: \dm\bin\dmc hello With a bit of luck you now have a hello.exe program in the same folder, run in by running the command: hello > place "hello" somewhere? why's there a space between "dmc" > and "hello"?.. \dm\bin is the path to the compiler, dmc is the name of the compiler. hello is the name of your source code (the .c file) -- Just another homepage: http://damb.dk But it's mine - Bertel |
April 15, 2007 Re: quick help thing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | very cool, bro, next step is to figure out how to edit these .c files. i've opened them in text documents (.cpp ones at least) and all these squares popped up. i'm guessing the textedit prog. won't recognize what are probably symbols. any ideas how to make /edit them is a bonus. k, bye |
April 15, 2007 Re: quick help thing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rageleai | Rageleai skrev: > very cool, bro, next step is to figure out how to edit these .c > files. i've opened them in text documents (.cpp ones at least) and > all these squares popped up. i'm guessing the textedit prog. won't > recognize what are probably symbols. any ideas how to make /edit > them is a bonus. k, bye You can edit the .c and .cpp files in notepad, they are ordinary text files. But you might want to try out an editor designed for programming, see: http://www.digitalmars.com/archives/cplusplus/4914.html You can down load wain from: http://damb.dk/wain.php -- Just another homepage: http://damb.dk But it's mine - Bertel |
July 29, 2007 Compiling error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | I tried to compile a hello.c program however, after I put the code \dm\bin\dmc hello in cmd it gives me this Fatal error: unable to open input file 'hello' --- errorlevel 1 I'm not sure what the problem is, and I know the file is there, am I supposed to put it in a certain place within the folder? |
July 29, 2007 Re: Compiling error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nolan | Nolan skrev: > I tried to compile a hello.c program however, after I put the code > \dm\bin\dmc hello in cmd it gives me this > Fatal error: unable to open input file 'hello' > --- errorlevel 1 > I'm not sure what the problem is, and I know the file is there, am I supposed to > put it in a certain place within the folder? Try to write the extension of the file to compile as well: \dmc\bin\dmc hello.c -- Just another homepage: http://damb.dk But it's mine - Bertel |
July 29, 2007 Re: Compiling error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | I'm still getting the same error. |
July 29, 2007 Re: Compiling error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nolan | Nolan wrote:
> I'm still getting the same error.
Then hello.c is not in your current directory. Use the "CD" command to change the current directory. Use "DIR" to see the contents of your current directory.
|
Copyright © 1999-2021 by the D Language Foundation