finite rh4 compile error

Building with Studio12 rh4, finite is not defined. It seems solaris works with a different include file. Suggestions?
[124 byte] By [Brett_Tiplitza] at [2007-11-27 1:39:23]
# 1

Your question is missing a lot of details, but I hit the same issue with C++ using stlport4 because it defines _XOPEN_SOURCE=500. I was told that this would be removed in the next version. In the mean time, you can add -D_GNU_SOURCE or -D_BSD_SOURCE to your CXXFLAGS. If you are talking about something else than c++ with stlport4, then please say so, details can only help...

Marc_Glissea at 2007-7-12 0:52:19 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Either definition fixed the problem. I was puzzled since unlike the other problems I encountered, I could not actually track down the missing definition within /usr/include... and so remain puzzled where this is picked up.Thanks for the help
Brett_Tiplitza at 2007-7-12 0:52:19 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
I did have a few of these types of errors. It sounds like Sun is uncertain on the gnu compatibility, but it would really help if some docs exist (or did I miss them) advising on common compiler flags such as these that would be helpful to users.
Brett_Tiplitza at 2007-7-12 0:52:19 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

> It sounds like Sun is uncertain on the gnu compatibility

Well, not actually that. The truth is that gnu itself is uncertain on the gnu compatibility, and even more it is uncertain about compatibility with other compilers.

There are many problems with glibc headers being unreasonably tied to the fact that compiler has GNU_SOURCE enabled.

We dont have it, and we get hosed in many different ways.

(here is one of the bug report we submitted on glibc headers: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=179525)

> it would really help if some docs exist (or did I miss them) advising on common compiler flags

Thats true, and we hope to be able to address this issue till the release.

There is a public twiki that some of our engineers try to support.

Feel free to contribute there. http://www.genunix.org/wiki/index.php/Category:Sun_Studio

regards,

__Fedor.

SFVa at 2007-7-12 0:52:19 > top of Java-index,Development Tools,Solaris and Linux Development Tools...