www.digitalmars.com         C & C++   DMDScript  

c++ - quick help thing

reply Rageleai <europa989 aol.com> writes:
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
parent reply Bertel Brander <bertel post4.tele.dk> writes:
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
Apr 15 2007
next sibling parent reply Rageleai <europa989 aol.com> writes:
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
parent Bertel Brander <bertel post4.tele.dk> writes:
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
Apr 15 2007
prev sibling parent reply Nolan <nolanp01 ca.rr.com> writes:
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
parent reply Bertel Brander <bertel post4.tele.dk> writes:
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
parent reply Nolan <nolanp01 ca.rr.com> writes:
I'm still getting the same error.
Jul 29 2007
parent Walter Bright <newshound1 digitalmars.com> writes:
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