c++ - quick help thing
- Rageleai (13/13) Apr 14 2007 hi, first time, so anyone able to like explain this a bit more?
-
Bertel Brander
(18/38)
Apr 15 2007
Yes, open a command prompt (start -> run -> cmd
) - Rageleai (5/5) Apr 15 2007 very cool, bro, next step is to figure out how to edit these .c
- Bertel Brander (12/17) Apr 15 2007 You can edit the .c and .cpp files in notepad, they are ordinary
- Nolan (6/6) Jul 29 2007 I tried to compile a hello.c program however, after I put the code
- Bertel Brander (7/13) Jul 29 2007 Try to write the extension of the file to compile as well:
- Nolan (1/1) Jul 29 2007 I'm still getting the same error.
- Walter Bright (4/5) Jul 29 2007 Then hello.c is not in your current directory. Use the "CD" command to
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
Apr 14 2007
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: helloplace "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
Apr 15 2007
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
Apr 15 2007
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, byeYou 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
Apr 15 2007
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?
Jul 29 2007
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
Jul 29 2007
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.
Jul 29 2007