Page 1 of 1

fabs is not a element of '_STL'

Posted: Sat Mar 05, 2005 14:43
by Nocs
Hello,

i have a problem compiling cegui 0.2. The compiler gives the following errors:

\\cegui_mk2\src\elements\ceguiscrollablepane.cpp(318) : error C2039: 'fabs' : Is not a element of '_STL'

\\cegui_mk2\src\elements\ceguispinner.cpp(239) : error C2039: 'sscanf' : Is not a element of '_STL'

I have copied the common-dep and the stl-dep packages (v0.2) to the right place and i have set the global environment variables for headers and libs to the stl directory.

Can anyone help me ?

Re: fabs is not a element of '_STL'

Posted: Sat Mar 05, 2005 16:05
by CrazyEddie
Hi,

This is HEAD as opposed to 0.2.0, but that's fine becuase I was not aware that there was this problem. So thanks for reporting it :-D

The issue appears to be poxy STLport and the fact that half the symbols don't get put into the standard namespace where they should be (and even then you get different results depending upon which compiler it's using). What a steaming pile of shite :lol:

I'll get these fixed later on this afternoon :evil:

CE.

Re: fabs is not a element of '_STL'

Posted: Sun Mar 06, 2005 00:55
by pjcast
Yeah, I noticed this to with recent cvs... Though, it only affected the windowslook build for me, so I ignored it ;)

Also, I noticed that at least the VC7.0 makefiles all had "treat warnings as errors" turned on.

First I started just fixing the warnings...than just got tired and turned that off :hammer: (no idea why I used the hammer, but everyone else has)

Re: fabs is not a element of '_STL'

Posted: Sun Mar 06, 2005 11:36
by CrazyEddie
Thanks, pjcast for the information.

Yeah, I noticed this to with recent cvs... Though, it only affected the windowslook build for me, so I ignored it ;)

Hmmm, I guess I should take a look at those too. Was it the same std::fabs issue or others too?

Also, I noticed that at least the VC7.0 makefiles all had "treat warnings as errors" turned on.

I have this switched on in the VC++7.1 makefiles since that's what I use on Windows and I like try to keep warnings to a minimum, and this helps me out in that department. The VC++7.0 files were made via the highly technical "cut & paste" system, which is why this setting is on there too ;) What kinds of warnings were you getting? Last time I had access to VC7.0 I don't recall any troubles (though that was a while back now).

First I started just fixing the warnings...than just got tired and turned that off :hammer: (no idea why I used the hammer, but everyone else has)

The :hammer: is an essential emoticon. Nobody can resist!

CE.

Re: fabs is not a element of '_STL'

Posted: Sun Mar 06, 2005 18:14
by pjcast
Yeah, the errors were the same.. on second look, it affected my ceguibase build not windowslook :oops: ...
Using vc7.0 w/ stlport 4.6.2

The warnings seem to all be of type "conversion of double to float, possible loss of data" which were solved by just using an explicit static_cast<float>... But, seemed to be several, so I just turned off the setting :-o

Re: fabs is not a element of _STL

Posted: Mon Mar 07, 2005 09:36
by CrazyEddie
Thanks for the info, I think that most of this should be fixed now. I'll have a double-check for more instances of std::fabs and co. I'll also do a clean & rebuild on Win32 to make sure there's no more warnings.

CE.