www.digitalmars.com         C & C++   DMDScript  

c++.chat - Advice needed

reply Adam <Adam_member pathlink.com> writes:
How do I compile a program once I write it?

adam
Jul 08 2005
parent reply "Walter" <newshound digitalmars.com> writes:
"Adam" <Adam_member pathlink.com> wrote in message
news:dan82c$16cv$1 digitaldaemon.com...
 How do I compile a program once I write it?
\dm\readme.html has explicit instructions. If they aren't working for you, please tell me where they went wrong so I can see about improving them.
Jul 08 2005
parent reply Adam <Adam_member pathlink.com> writes:
I understand that the compiler is in \dm\bin\dmc and that you can type your
instructions in men.exe but how do you actually connect the two and compile it.

Adam
Jul 09 2005
parent reply "Walter" <newshound digitalmars.com> writes:
"Adam" <Adam_member pathlink.com> wrote in message
news:daom1h$2e3i$1 digitaldaemon.com...
 I understand that the compiler is in \dm\bin\dmc and that you can type
your
 instructions in men.exe but how do you actually connect the two and
compile it. Have you successfully opened a command prompt window?
Jul 09 2005
parent reply adam <adam_member pathlink.com> writes:
All I know what to do so far is to type it. After that I can't figure it out.
How do you open a command prompt window?

adam
Jul 09 2005
next sibling parent reply Cesar Rabak <crabak acm.org> writes:
adam escreveu:
 All I know what to do so far is to type it. After that I can't figure it out.
 How do you open a command prompt window?
 
 adam
Go in Start->Run in the "Open:" field, type in "cmd" A command prompt should appear. Something like: C:\Document ad Settings\username> is the *prompt* type there: C:\Document ad Settings\username>dmc and report the results back.
Jul 09 2005
parent reply Adam <Adam_member pathlink.com> writes:
When I go to type in dmc after C:\Documents and Settings\username>, it tells me
that it is not recognized as an internal or external command. What should I do
now?

Adam
Jul 10 2005
parent reply Cesar Rabak <crabak acm.org> writes:
Adam escreveu:
 When I go to type in dmc after C:\Documents and Settings\username>, it tells me
 that it is not recognized as an internal or external command. What should I do
 now?
 
 Adam
You should create a file called, say 'DM.BAT' or 'DM.CMD' with the following contents: ------------------------------>8----- cut here start SET PATH=D:\DM\BIN;%PATH% ------------------------------8<----- cut here end Where the 'D:\DM\BIN' should match the place where your bin subdir in your installation is. This is what the line 41 of 'readme.txt' in the Digital Mars compiler installation says you to do.
Jul 10 2005
parent reply Adam <Adam_member pathlink.com> writes:
I get what your saying except I don't really understand what the extension .BAT
or .CMD is or how to create it. Is what your saying pretty much just a shortcut
that is placed in the location or is it something else?

Adam
Jul 11 2005
parent reply Cesar Rabak <crabak acm.org> writes:
Adam escreveu:
 I get what your saying except I don't really understand what the extension .BAT
 or .CMD is or how to create it. Is what your saying pretty much just a shortcut
 that is placed in the location or is it something else?
 
 Adam
From the command prompt: Create a file with your text editor, say notepad, with the contents described and save it with the name DM.BAT, close the editor. On the command prompt, issue it: C:\>dm.bat then try again: C:\>dmc
Jul 11 2005
parent reply Adam <Adam_member pathlink.com> writes:
I did what you said and made a batch file, but when I went to type it in after
C:\Documents and Settings\username>, I got a bunch of statements surrounded by {
}'s, a statement saying that it could not find the path specified, and statement
saying that '}' is not an operatble command. I tried to get around this but
because I'm a newbie I can't figure out what to do.

Adam
Jul 12 2005
parent reply Cesar Rabak <crabak acm.org> writes:
Adam escreveu:
 I did what you said and made a batch file, but when I went to type it in after
 C:\Documents and Settings\username>, I got a bunch of statements surrounded by
{
 }'s, a statement saying that it could not find the path specified, and
statement
 saying that '}' is not an operatble command. I tried to get around this but
 because I'm a newbie I can't figure out what to do.
 
 Adam
What part of 'open notepad' or 'text editor' did you not understand?
Jul 12 2005
parent reply Adam <Adam_member pathlink.com> writes:
I don't understand what you mean!

Adam
Jul 12 2005
parent Cesar Rabak <crabak acm.org> writes:
Adam escreveu:
 I don't understand what you mean!
 
Adam, Can you then understand the instructions given in the readme.txt file which should be in the DM folder of your installation?
Jul 12 2005
prev sibling parent "Walter" <newshound digitalmars.com> writes:
"adam" <adam_member pathlink.com> wrote in message
news:dapo5g$asc$1 digitaldaemon.com...
 All I know what to do so far is to type it. After that I can't figure it
out.
 How do you open a command prompt window?
Most of the non-IDDE Digital Mars programs are console programs. A command prompt window can be created on XP by clicking on [Start][Command Prompt].
Jul 10 2005