fabs is not a element of '_STL'

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Nocs
Just popping in
Just popping in
Posts: 7
Joined: Fri Mar 04, 2005 21:05

fabs is not a element of '_STL'

Postby Nocs » Sat Mar 05, 2005 14:43

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 ?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: fabs is not a element of '_STL'

Postby CrazyEddie » Sat Mar 05, 2005 16:05

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.

User avatar
pjcast
Quite a regular
Quite a regular
Posts: 47
Joined: Wed Jan 12, 2005 12:06

Re: fabs is not a element of '_STL'

Postby pjcast » Sun Mar 06, 2005 00:55

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)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: fabs is not a element of '_STL'

Postby CrazyEddie » Sun Mar 06, 2005 11:36

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.

User avatar
pjcast
Quite a regular
Quite a regular
Posts: 47
Joined: Wed Jan 12, 2005 12:06

Re: fabs is not a element of '_STL'

Postby pjcast » Sun Mar 06, 2005 18:14

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: fabs is not a element of _STL

Postby CrazyEddie » Mon Mar 07, 2005 09:36

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.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests