www.digitalmars.com         C & C++   DMDScript  

c++.stl.port - Compile error with STLPort and -A

reply Steve Love <Steve_member pathlink.com> writes:
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
Oct 20 2004
parent reply Scott Michel <scottm aero.org> writes:
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
Oct 20 2004
parent Steve Love <Steve_member pathlink.com> writes:
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
Oct 20 2004