declaration does not declare anything - exception
Hi, When I compile with Xcode I get a 'declaration does not declare anything' error on boost/exception/diagnostic_information.hpp. However, the exception test run fine when I compile with bjam --toolset=darwin ... I am quite sure both use the same compiler (g++-4.0.1) and have the same options (I copied from the bjam set to Xcode). I now outcommented it (see below), but this is not a permanent solution. It should be valid, so what am I doing wrong regarding Xcode? Any help would be very much appreciated! Best, Dirk template <class T> struct enable_boost_exception_overload { struct yes { char q[100]; }; typedef char no; //static yes check(exception const *); //static no check(...); enum e { value=sizeof(/*check*/((T*)0))==sizeof(yes) }; }; template <class T> struct enable_std_exception_overload { struct yes { char q[100]; }; typedef char no; //static yes check(std::exception const *); //static no check(...); enum e { value = !enable_boost_exception_overload<T>::value && sizeof(/*check*/((T*)0))==sizeof(yes) }; };
When I compile with Xcode I get a 'declaration does not declare anything' error on boost/exception/diagnostic_information.hpp.
However, the exception test run fine when I compile with bjam --toolset=darwin ...
I am quite sure both use the same compiler (g++-4.0.1) and have the same options (I copied from the bjam set to Xcode).
FWIW, I had no such an issue with XCode 3.2.1 (gcc4.2), boost 1.41.
On Wed, Feb 3, 2010 at 4:41 AM, Dirk Griffioen
Hi,
When I compile with Xcode I get a 'declaration does not declare anything' error on boost/exception/diagnostic_information.hpp.
Could you please provide the exact error message and everything else from the compiler log that seems relevant? Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode
Hi Emil, All Xcode says is: I could not find more log... The gcc options used are: /Developer/usr/bin/gcc-4.0 -x c++-header -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -fwritable-strings -Woverloaded-virtual -Wunused-variable -Wunknown-pragmas -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -D_DEBUG=1 -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2Â -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -x c++-header -fno-inline -ftemplate-depth-128 -dynamic -no-cpp-precomp -gdwarf-2 -g -ftemplate-depth-128 -dynamic -no-cpp-precomp -gdwarf-2 -g -c (Sorry for the duplicates - these options pop up all over the build command) /Developer/usr/bin/gcc-4.0 --version gives: i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490) Same version bjam uses and this compiles fine ... What am I doing wrong or is missing? Best, Dirk
On Wed, Feb 3, 2010 at 4:41 AM, Dirk Griffioen
wrote: Hi,
When I compile with Xcode I get a 'declaration does not declare anything' error on boost/exception/diagnostic_information.hpp.
Could you please provide the exact error message and everything else from the compiler log that seems relevant?
Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Thu, Feb 4, 2010 at 7:28 AM, Dirk Griffioen
Hi Emil,
All Xcode says is:
Yes, Xcode's log parser is useless for C++ build logs. I forgot how it's done but look for a very small icon on the window that shows you the build log. It is not a large visible button, it's tiny. Click that thing and you'll see the real text log from the compiler. It's difficult to diagnose a problem without the complete log. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode
Yes, Xcode's log parser is useless for C++ build logs.
I forgot how it's done but look for a very small icon on the window that shows you the build log. It is not a large visible button, it's tiny. Click that thing and you'll see the real text log from the compiler. It's difficult to diagnose a problem without the complete log.
I believe the second screenshot (sorry for that) was from that exact window - not usefull at all I will have second look. Thanks! Dirk
Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Dirk Griffioen
-
Emil Dotchevski
-
Igor R