Thread overview
Building STLPort
Mar 22, 2004
Scott Meyers
Mar 22, 2004
Scott Meyers
Mar 23, 2004
Arjan Knepper
Mar 23, 2004
Walter
Jun 13, 2006
Tram
Jun 13, 2006
Walter Bright
March 22, 2004
I'm trying to install the DigitalMars compiler, by which I mean a build system that will handle standard C++.  This involves installing STLPort.  I downloaded the latest version, and step 4 is to find the appropriate makefile.  There does not appear to be a makefile for DigitalMars.  Does anybody have instructions on how to build/configure STLPort for use with dmc under Windows?

Also, is there a reason I should not be annoyed that the dmc faq includes material such as this,

  iostream is part of STLport. Do one of the following:

    * Add the following switch:
        -I\dm\stlport\stlport
      when compiling.

    * Add \dm\stlport\stlport to the INCLUDE environment variable search
      path before \dm\include.

   ...

   For more information, see \dm\stlport\readme.txt.

even though installing dmc yields no stlport subdirectory?

Thanks,

Scott

March 22, 2004
Okay, I downloaded the special version of stlport for dm, but when I go to the src directory and type

  make -fdm.mak

it tells me

  Error on line 69: bad syntax for implicit rule, should be .frm.to:

Sigh.  Suggestions?

In the meantime, I noticed this in the readme.txt file:

  To compile a program using STLport's <iostreams> with the static library:

	sc hello -I\dm\stlport\stlport

Color me confused.  What is sc and how does it differ from dmc?

Scott

March 23, 2004
Scott Meyers wrote:
> Okay, I downloaded the special version of stlport for dm, but when I go to
> the src directory and type
> 
>   make -fdm.mak
> 
> it tells me
> 
>   Error on line 69: bad syntax for implicit rule, should be .frm.to:
> 
> Sigh.  Suggestions?
> 
> In the meantime, I noticed this in the readme.txt file:
> 
>   To compile a program using STLport's <iostreams> with the static library:
> 
> 	sc hello -I\dm\stlport\stlport
> 
> Color me confused.  What is sc and how does it differ from dmc?
> 
> Scott
> 

see http://www.digitalmars.com/ctg/ctg.html
March 23, 2004
"Scott Meyers" <usenet@aristeia.com> wrote in message news:MPG.1ac9140990f8122a989681@news.digitalmars.com...
> Okay, I downloaded the special version of stlport for dm, but when I go to the src directory and type
>
>   make -fdm.mak
>
> it tells me
>
>   Error on line 69: bad syntax for implicit rule, should be .frm.to:
>
> Sigh.  Suggestions?

Yes. The makefile dm.mak is for smake, not make. To build:

    cd \dm\stlport\src\
    smake -f dm.mak

smake.exe is the more modern make program that comes with the DMC++ CD, make.exe is the older one I keep for compatibility with old makefiles. smake is pretty compatible with Microsoft's nmake.

> In the meantime, I noticed this in the readme.txt file:
>
>   To compile a program using STLport's <iostreams> with the static
library:
>
> sc hello -I\dm\stlport\stlport
>
> Color me confused.  What is sc and how does it differ from dmc?

What happened was Microsoft, with XP, added a system command called 'sc'
which mucked things up for DMC++. So, I created a dmc.exe using:
    copy sc.exe dmc.exe
<g>. I'll change the \dm\stlport\readme.txt to reflect this.

References:
    www.digitalmars.com/ctg/sc.html            sc and dmc
    www.digitalmars.com/ctg/make.html        make
    www.digitalmars.com/ctg/smake.html        smake


June 13, 2006
>    www.digitalmars.com/ctg/smake.html        smake

Every option under the sun except a link to download it...


June 13, 2006
Tram wrote:
>>    www.digitalmars.com/ctg/smake.html        smake
> 
> Every option under the sun except a link to download it...

smake comes as part of the Extended Utility Package:

www.digitalmars.com/eup.html