www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



c++ - quick help thing

↑ ↓ ← 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
↑ ↓ 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
↑ ↓ 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
↑ ↓ → 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