From: Patrik J. <pa...@uc...> - 2009-03-21 00:28:10
|
Hey Yves, There's been similar problems before, where there's been a conflict between machine-specific defines and the gcc define. The solution seems to be that the test for __GNU__ should always come before any other environment tests (but after the Intel test, IIRC, as the intel compiler also pretents it's a gnu compiler...) It's messy, somehow it seems it would be better handled solely by the config script, which clearly knows which compiler's in use. What's the point in making a compiler specific bzconfig.h but then putting it in a compiler-dependent directory? It seems once the bzconfig.h has been made, it should just be used. Or is this in case there are several different compilers in use? cheers, /Patrik On Fri, Mar 20, 2009 at 3:03 PM, Yves Delley <de...@st...> wrote: > Hi one more > > I had problems compiling the current CVS version on MacOSX 10.5 using > gcc 4.? The problem stems from the fact that "blitz/bzconfig.h" tried to > include "blitz/apple/bzconfig.h", instead of "blitz/gnu/bzconfig.h", but > the directory "blitz/apple" does not exist. As far as I understood it > means that the "./configure" did correctly determine that I intend to > use GNU GCC. "blitz/bzconfig.h" on the other hand determines that I want > to use some IBM compiler I do not know, based on the "#ifdef __APPLE__". > Note that blitz-0.9 did work without a glitch due to the fact that there > this line did read "#ifdef __APPLE". I do not know what exactly is now > wrong. Note that I did not set any options during configure, or export > any nonstandard environment variables. Apparently GCC on MacOSX defines > __APPLE__ automatically. > Just a swapping the order of the "#ifdef __APPLE__ \ > #include<blitz/apple/bzconfig.h>" and "#ifdef __GNU__ \ > #include<blitz/gnu/bzconfig.h>" works for me, but I'm not sure if that > would break other platforms. Maybe a more complicated decision scheme is > needed. > > Best regards and thank you again for developing Blitz++ > Yves Delley > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Blitz-support mailing list > Bli...@li... > https://lists.sourceforge.net/lists/listinfo/blitz-support > |