
I am trying to extract function information from my project into a xml file with gcc-xml. The xml file is to be used to make wrappers for other languages. But I get the below failures. I just add all the include directives into a gcc options file and run it. Do I need to set some flags for gcc-xml to parse it correctly ? In file included from /root/src/types/basictypes.hpp:50, from /root/src/logging/logging.hpp:46, from /root/src/exceptions/exc.hpp:70, from ../model/model.hpp:29, from ../model/model.cpp:25: /external/boost/boost/filesystem/operations.hpp:510: error: expected identifier before 'class' /external/boost/boost/filesystem/operations.hpp:511: error: ISO C++ forbids declaration of 'fail_if_exists' with no type /external/boost/boost/filesystem/operations.hpp:511: error: ISO C++ forbids declaration of 'overwrite_if_exists' with no type /external/boost/boost/filesystem/operations.hpp:511: error: expected ';' before '}' token /external/boost/boost/filesystem/operations.hpp:511: error: expected `;' before '}' token /external/boost/boost/filesystem/operations.hpp:511: error: multiple types in one declaration /external/boost/boost/filesystem/operations.hpp:511: error: invalid use of non-static data member 'boost::filesystem::copy_option::fail_if_exists' /external/boost/boost/filesystem/operations.hpp:515: error: from this location /external/boost/boost/filesystem/operations.hpp: In function 'typename boost::enable_if<boost::filesystem::is_basic_path<Path>, void>::type boost::filesystem::copy_file(const Path&, const Path&, boost::filesystem::copy_option)': /external/boost/boost/filesystem/operations.hpp:511: error: invalid use of non-static data member 'boost::filesystem::copy_option::fail_if_exists' /external/boost/boost/filesystem/operations.hpp:519: error: from this location /usr/include/c++/4.4/cmath: In function 'typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp = float]': /external/boost/boost/functional/hash/detail/hash_float.hpp:65: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = float]' /external/boost/boost/functional/hash/hash.hpp:299: instantiated from here /usr/include/c++/4.4/cmath:501: error: '__builtin_fpclassify' was not declared in this scope /usr/include/c++/4.4/cmath: In function 'typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp = double]': /external/boost/boost/functional/hash/detail/hash_float.hpp:65: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = double]' /external/boost/boost/functional/hash/hash.hpp:304: instantiated from here /usr/include/c++/4.4/cmath:501: error: '__builtin_fpclassify' was not declared in this scope /usr/include/c++/4.4/cmath: In function 'typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp = long double]': /external/boost/boost/functional/hash/detail/hash_float.hpp:65: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = long double]' /external/boost/boost/functional/hash/hash.hpp:309: instantiated from here /usr/include/c++/4.4/cmath:501: error: '__builtin_fpclassify' was not declared in this scope

2010/5/24 Bo Jensen <jensen.bo@gmail.com>
I am trying to extract function information from my project into a xml file with gcc-xml.
I can't answer your original question, but you might try clang instead of gcc-xml. See http://blog.llvm.org/2010/05/clang-builds-boost.html. Roman Perepelitsa.

Roman thanks for your reply, but I don't see from the documentation how I can generate a xml file with clang. On Tue, May 25, 2010 at 8:32 AM, Roman Perepelitsa <roman.perepelitsa@gmail.com> wrote:
2010/5/24 Bo Jensen <jensen.bo@gmail.com>
I am trying to extract function information from my project into a xml file with gcc-xml.
I can't answer your original question, but you might try clang instead of gcc-xml. See http://blog.llvm.org/2010/05/clang-builds-boost.html. Roman Perepelitsa. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Ahh I see, sorry missed that. Thanks will give it a try. On Tue, May 25, 2010 at 9:04 AM, Roman Perepelitsa <roman.perepelitsa@gmail.com> wrote:
2010/5/25 Bo Jensen <jensen.bo@gmail.com>
Roman thanks for your reply, but I don't see from the documentation how I can generate a xml file with clang.
$ clang -cc1 -ast-print-xml test.cpp Roman Perepelitsa. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Bo Jensen
-
Roman Perepelitsa