www.digitalmars.com         C & C++   DMDScript  

c++ - Help with DM compiler...

reply Dragomir Jankovic <jdragomir accesscomm.ca> writes:
This is a newbie question, so just put up with me.  I just downloaded a
DM C/C++ compiler, but how do I install it/run it??? Is there a manual
of some kind that I could download???
Jan 22 2002
parent reply "Walter" <walter digitalmars.com> writes:
Just unzip it and put \dm\bin in your PATH environment variable. -Walter

"Dragomir Jankovic" <jdragomir accesscomm.ca> wrote in message
news:3C4DD258.3099439D accesscomm.ca...
 This is a newbie question, so just put up with me.  I just downloaded a
 DM C/C++ compiler, but how do I install it/run it??? Is there a manual
 of some kind that I could download???
Jan 22 2002
parent reply Dragomir Jankovic <jdragomir accesscomm.ca> writes:
I did the PATH thing, but when I try to compile the program I get the
following output:

C:\WINDOWS\Desktop>cd..

C:\WINDOWS>cd..

C:\>edit hello.cc

C:\>sc -cpp -ms hello.cc
link hello/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

SDS.lib
 Warning 2: File Not Found SDS.lib
OPTLINK : Warning 23: No Stack
hello.obj(hello)
 Error 42: Symbol Undefined __acrtused
hello.obj(hello)
 Error 42: Symbol Undefined _puts
OPTLINK : Warning 134: No Start Address

--- errorlevel 2

C:\>

This is suppose to be just the simple "Hello world"

Walter wrote:

 Just unzip it and put \dm\bin in your PATH environment variable. -Walter

 "Dragomir Jankovic" <jdragomir accesscomm.ca> wrote in message
 news:3C4DD258.3099439D accesscomm.ca...
 This is a newbie question, so just put up with me.  I just downloaded a
 DM C/C++ compiler, but how do I install it/run it??? Is there a manual
 of some kind that I could download???
Jan 22 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
You're compiling for MS-DOS 16 bits target platform.
Try using -mn instead of -ms
If you want to compile for MS-DOS 16 bits target platform, you will need
additional libraries.

Jan



Dragomir Jankovic wrote:

 I did the PATH thing, but when I try to compile the program I get the
 following output:

 C:\WINDOWS\Desktop>cd..

 C:\WINDOWS>cd..

 C:\>edit hello.cc

 C:\>sc -cpp -ms hello.cc
 link hello/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 SDS.lib
  Warning 2: File Not Found SDS.lib
 OPTLINK : Warning 23: No Stack
 hello.obj(hello)
  Error 42: Symbol Undefined __acrtused
 hello.obj(hello)
  Error 42: Symbol Undefined _puts
 OPTLINK : Warning 134: No Start Address

 --- errorlevel 2

 C:\>

 This is suppose to be just the simple "Hello world"

 Walter wrote:

 Just unzip it and put \dm\bin in your PATH environment variable. -Walter

 "Dragomir Jankovic" <jdragomir accesscomm.ca> wrote in message
 news:3C4DD258.3099439D accesscomm.ca...
 This is a newbie question, so just put up with me.  I just downloaded a
 DM C/C++ compiler, but how do I install it/run it??? Is there a manual
 of some kind that I could download???
Jan 23 2002
parent reply "Phill" <phillbert pacific.net.au> writes:
also you dont need to use any flags to compile it
you can just type

sc hello.cpp

and then

hello

to run it.


"Jan Knepper" <jan smartsoft.cc> wrote in message
news:3C4F1C14.43A0352 smartsoft.cc...
 You're compiling for MS-DOS 16 bits target platform.
 Try using -mn instead of -ms
 If you want to compile for MS-DOS 16 bits target platform, you will need
 additional libraries.

 Jan



 Dragomir Jankovic wrote:

 I did the PATH thing, but when I try to compile the program I get the
 following output:

 C:\WINDOWS\Desktop>cd..

 C:\WINDOWS>cd..

 C:\>edit hello.cc

 C:\>sc -cpp -ms hello.cc
 link hello/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 SDS.lib
  Warning 2: File Not Found SDS.lib
 OPTLINK : Warning 23: No Stack
 hello.obj(hello)
  Error 42: Symbol Undefined __acrtused
 hello.obj(hello)
  Error 42: Symbol Undefined _puts
 OPTLINK : Warning 134: No Start Address

 --- errorlevel 2

 C:\>

 This is suppose to be just the simple "Hello world"

 Walter wrote:

 Just unzip it and put \dm\bin in your PATH environment
variable. -Walter
 "Dragomir Jankovic" <jdragomir accesscomm.ca> wrote in message
 news:3C4DD258.3099439D accesscomm.ca...
 This is a newbie question, so just put up with me.  I just
downloaded a
 DM C/C++ compiler, but how do I install it/run it??? Is there a
manual
 of some kind that I could download???
Feb 10 2002
parent Jan Knepper <jan smartsoft.cc> writes:
Correct!
That's true for the newer versions.
Older version default to an other memory model...

Jan



Phill wrote:

 also you dont need to use any flags to compile it
 you can just type

 sc hello.cpp

 and then

 hello

 to run it.

 "Jan Knepper" <jan smartsoft.cc> wrote in message
 news:3C4F1C14.43A0352 smartsoft.cc...
 You're compiling for MS-DOS 16 bits target platform.
 Try using -mn instead of -ms
 If you want to compile for MS-DOS 16 bits target platform, you will need
 additional libraries.

 Jan



 Dragomir Jankovic wrote:

 I did the PATH thing, but when I try to compile the program I get the
 following output:

 C:\WINDOWS\Desktop>cd..

 C:\WINDOWS>cd..

 C:\>edit hello.cc

 C:\>sc -cpp -ms hello.cc
 link hello/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 SDS.lib
  Warning 2: File Not Found SDS.lib
 OPTLINK : Warning 23: No Stack
 hello.obj(hello)
  Error 42: Symbol Undefined __acrtused
 hello.obj(hello)
  Error 42: Symbol Undefined _puts
 OPTLINK : Warning 134: No Start Address

 --- errorlevel 2

 C:\>

 This is suppose to be just the simple "Hello world"

 Walter wrote:

 Just unzip it and put \dm\bin in your PATH environment
variable. -Walter
 "Dragomir Jankovic" <jdragomir accesscomm.ca> wrote in message
 news:3C4DD258.3099439D accesscomm.ca...
 This is a newbie question, so just put up with me.  I just
downloaded a
 DM C/C++ compiler, but how do I install it/run it??? Is there a
manual
 of some kind that I could download???
Feb 13 2002