Thread overview
Compile error with STLPort and -A
Oct 20, 2004
Steve Love
Oct 20, 2004
Scott Michel
Oct 21, 2004
Steve Love
October 20, 2004
Trying to compile just

int main()
{
}

with STLPort 4.5 as downloaded from the DM homepage, and the free 8.41 compiler.

W:\dev\scratch\dm_test>dmc -A -Id:/bin/dm/stlport/stlport 1.cpp
#   define __DFL_TMPL_PARAM( classname, defval ) class classname = defval
^
d:/bin/dm/stlport/stlport\stl/_config.h(370) : Preprocessor error:
'_STLP_DEFAULT_TYPE_PARAM' is already defined
--- errorlevel 1

Steve


October 20, 2004
Steve Love wrote:

> Trying to compile just
> 
> int main()
> {
> }
> 
> with STLPort 4.5 as downloaded from the DM homepage, and the free 8.41 compiler.
> 
> W:\dev\scratch\dm_test>dmc -A -Id:/bin/dm/stlport/stlport 1.cpp
> #   define __DFL_TMPL_PARAM( classname, defval ) class classname = defval
> ^
> d:/bin/dm/stlport/stlport\stl/_config.h(370) : Preprocessor error:
> '_STLP_DEFAULT_TYPE_PARAM' is already defined
> --- errorlevel 1

Well-known problem: '-A' and STLport don't work together due to the STLport developers' coding style. Since I'm not a "core" STLport developer (and I suspect no one else who uses DMC is one either), there's no quick way of fixing this, other than no using '-A'.


-scooter
October 21, 2004
In article <cl657m$1mo$1@digitaldaemon.com>, Scott Michel says...

>Well-known problem: '-A' and STLport don't work together due to the STLport developers' coding style.

OK. I *did* look through archived messages - honest! Only saw one post, with a reply about not having a '+' in paths.

> Since I'm not a "core" STLport
>developer (and I suspect no one else who uses DMC is one either), there's no quick way of fixing this, other than no using '-A'.

Me neither. Shame but there you go. Thanks for the response.

>-scooter

Steve