www.digitalmars.com         C & C++   DMDScript  

c++.stl.port - Installation of STLPort 4.5.3 unclear

reply Benjamin <Benjamin_member pathlink.com> writes:
I have recently decided to try out digital mars.  I have found it to be an
outstanding alternative to gcc on win32.
I am, however having problems with stlport.
The documentation seems to state that just unpacking it an setting your include
directory with the stlport dir first is all you need to do.
However when I try to compile I get the following errors:
________________________________________________________________________________
D:\c++book>dmc -cpp -o+all -A forloop.cpp
#   define __DFL_TMPL_PARAM( classname, defval ) class classname = defval
^
D:\C_STUFF\digitalmars\dm\stlport\stlport\stl/_config.h(370) : Preprocessor erro
r: '_STLP_DEFAULT_TYPE_PARAM' is already defined
using _STLP_VENDOR_CSTD::fgetws;
^
D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(200) : Error: undefined identif
ier 'fgetws'
using _STLP_VENDOR_CSTD::fputws;
^
D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(202) : Error: undefined identif
ier 'fputws'
using _STLP_VENDOR_CSTD::getwchar;
^
D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(212) : Error: undefined identif
ier 'getwchar'
using _STLP_VENDOR_CSTD::getwc;
^
D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(216) : Error: undefined identif
ier 'getwc'
Fatal error: too many errors
________________________________________________________________________________
Without the -A I get no errors and the c++ file compiles and links cleanly.

1. What do these errors signify?
2. Do I need to compile stlport as per stlports own documentation?
3. Do I need to apply the diff.txt file that comes with the 4.5.3 digital mars
port?
4. Do I need to compile iostreams?
5. Does the CD version come with STLport pre-compiled and ready to go?
6. If I don't use "-A" compile option is digital mars using STLport?

Any information you can give me to resolve these issues would be appreciated.
Maybe this could help others as well.
Thanks;
Ben
________________________________________________________________________________
System information
OS= Windows XP
Digital Mars version = 8.38 (Downloaded)
Stlport version = 4.5.3 (Downloaded from Digital Mars Web Site)
Jan 14 2004
parent reply "Walter" <walter digitalmars.com> writes:
"Benjamin" <Benjamin_member pathlink.com> wrote in message
news:bu48uk$25p7$1 digitaldaemon.com...
 I have recently decided to try out digital mars.  I have found it to be an
 outstanding alternative to gcc on win32.
 I am, however having problems with stlport.
 The documentation seems to state that just unpacking it an setting your

 directory with the stlport dir first is all you need to do.
 However when I try to compile I get the following errors:

____
 D:\c++book>dmc -cpp -o+all -A forloop.cpp
 #   define __DFL_TMPL_PARAM( classname, defval ) class classname = defval
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\stl/_config.h(370) :

 r: '_STLP_DEFAULT_TYPE_PARAM' is already defined
 using _STLP_VENDOR_CSTD::fgetws;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(200) : Error: undefined

 ier 'fgetws'
 using _STLP_VENDOR_CSTD::fputws;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(202) : Error: undefined

 ier 'fputws'
 using _STLP_VENDOR_CSTD::getwchar;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(212) : Error: undefined

 ier 'getwchar'
 using _STLP_VENDOR_CSTD::getwc;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(216) : Error: undefined

 ier 'getwc'
 Fatal error: too many errors

____
 Without the -A I get no errors and the c++ file compiles and links

 1. What do these errors signify?

That the stlport files are not strictly ansi compatible.
 2. Do I need to compile stlport as per stlports own documentation?

No. Just leave off the -A switch.
 3. Do I need to apply the diff.txt file that comes with the 4.5.3 digital

 port?

No.
 4. Do I need to compile iostreams?

No. Just use the included library.
 5. Does the CD version come with STLport pre-compiled and ready to go?

Yes.
 6. If I don't use "-A" compile option is digital mars using STLport?

Yes.
 Any information you can give me to resolve these issues would be

 Maybe this could help others as well.
 Thanks;
 Ben

____
 System information
 OS= Windows XP
 Digital Mars version = 8.38 (Downloaded)
 Stlport version = 4.5.3 (Downloaded from Digital Mars Web Site)

Jan 16 2004
parent bpolen <bpolen_member pathlink.com> writes:
Thanks Walter for answering all my questions!!!!

In article <bu9490$13aa$2 digitaldaemon.com>, Walter says...
"Benjamin" <Benjamin_member pathlink.com> wrote in message
news:bu48uk$25p7$1 digitaldaemon.com...
 I have recently decided to try out digital mars.  I have found it to be an
 outstanding alternative to gcc on win32.
 I am, however having problems with stlport.
 The documentation seems to state that just unpacking it an setting your

 directory with the stlport dir first is all you need to do.
 However when I try to compile I get the following errors:

____
 D:\c++book>dmc -cpp -o+all -A forloop.cpp
 #   define __DFL_TMPL_PARAM( classname, defval ) class classname = defval
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\stl/_config.h(370) :

 r: '_STLP_DEFAULT_TYPE_PARAM' is already defined
 using _STLP_VENDOR_CSTD::fgetws;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(200) : Error: undefined

 ier 'fgetws'
 using _STLP_VENDOR_CSTD::fputws;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(202) : Error: undefined

 ier 'fputws'
 using _STLP_VENDOR_CSTD::getwchar;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(212) : Error: undefined

 ier 'getwchar'
 using _STLP_VENDOR_CSTD::getwc;
 ^
 D:\C_STUFF\digitalmars\dm\stlport\stlport\cwchar(216) : Error: undefined

 ier 'getwc'
 Fatal error: too many errors

____
 Without the -A I get no errors and the c++ file compiles and links

 1. What do these errors signify?

That the stlport files are not strictly ansi compatible.
 2. Do I need to compile stlport as per stlports own documentation?

No. Just leave off the -A switch.
 3. Do I need to apply the diff.txt file that comes with the 4.5.3 digital

 port?

No.
 4. Do I need to compile iostreams?

No. Just use the included library.
 5. Does the CD version come with STLport pre-compiled and ready to go?

Yes.
 6. If I don't use "-A" compile option is digital mars using STLport?

Yes.
 Any information you can give me to resolve these issues would be

 Maybe this could help others as well.
 Thanks;
 Ben

____
 System information
 OS= Windows XP
 Digital Mars version = 8.38 (Downloaded)
 Stlport version = 4.5.3 (Downloaded from Digital Mars Web Site)


Jan 18 2004