I have an application that provides large file support and uses Boost regular expressions. When I compile the application specifying -D_LARGE_FILES, the linker gives the following errors:
ld: 0711-317 ERROR: Undefined symbol: .boost::regex_error::regex_error(const std::_LFS_ON::basic_string<char,std::char_traits<char>,std::allocator<char> >&,boost::regex_constants::error_type,long)
ld: 0711-317 ERROR: Undefined symbol: .boost::re_detail::lookup_default_collate_name(const std::_LFS_ON::basic_string<char,std::char_traits<char>,std::allocator<char> >&)
When I remove -D_LARGE_FILES. The application compiles and links successfully.
I'm using IBM XL C/C++ for AIX, V10.1 and BOOST 1_34_1
It seems that -D_LARGE_FILES is imcompatible with Boost 1_34_1.
Any ideas? Do I need to recompile Boost with special flags?