Thread overview
Help with DM compiler...
Jan 22, 2002
Dragomir Jankovic
Jan 23, 2002
Walter
Jan 23, 2002
Dragomir Jankovic
Jan 23, 2002
Jan Knepper
Feb 11, 2002
Phill
Feb 14, 2002
Jan Knepper
January 22, 2002
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???

January 23, 2002
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???
>


January 23, 2002
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???
> >

January 23, 2002
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???
> > >



February 11, 2002
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???
> > > >
>
>
>


February 14, 2002
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???
> > > > >
> >
> >
> >