www.digitalmars.com         C & C++   DMDScript  

c++.stl.port - stlport 4.5.3: abs

reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
Hi, I get this error message:

inline long   abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); }
                            ^
D:\DEVELOP\DM\BIN\..\stlport\cstdlib(89) : Error: 'abs' previously declared
as something else
It was declared as: int C func(int )
It is now declared: long C func(long )

I have the feeling that I need to set some config stuff... but where and
which? Thanks a lot.

--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax   : +49 (0)721 8408 9112
Web   : http://www.robertmuench.de
Jan 02 2003
parent reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
"Robert M. Münch" <robert.muench robertmuench.de> schrieb im Newsbeitrag
news:av1ejp$hlr$1 digitaldaemon.com...
 Hi, I get this error message:

 inline long   abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); }
                             ^
 D:\DEVELOP\DM\BIN\..\stlport\cstdlib(89) : Error: 'abs' previously

 as something else
 It was declared as: int C func(int )
 It is now declared: long C func(long )

 I have the feeling that I need to set some config stuff... but where and
 which? Thanks a lot.

Hi, is this such a trivial problem or such a hard problem noone has a tip for me? I made sure that the STLPORT includes are searched before the DMC ones. That's why I'm wondering that I get this cstdlib somehow included twice... Robert
Jan 04 2003
parent Christof Meerwald <cmeerw web.de> writes:
On Sat, 4 Jan 2003 11:18:01 +0100, Robert M. Münch wrote:
 "Robert M. Münch" <robert.muench robertmuench.de> schrieb im Newsbeitrag
 news:av1ejp$hlr$1 digitaldaemon.com...
 Hi, I get this error message:

 inline long   abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); }
                             ^
 D:\DEVELOP\DM\BIN\..\stlport\cstdlib(89) : Error: 'abs' previously

 as something else
 It was declared as: int C func(int )
 It is now declared: long C func(long )

 I have the feeling that I need to set some config stuff... but where and
 which? Thanks a lot.

for me? I made sure that the STLPORT includes are searched before the DMC ones. That's why I'm wondering that I get this cstdlib somehow included twice... Robert

We just can't reproduce it. BTW, are you sure you are using the C++ compiler (and not the C compiler)? bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Jan 04 2003