This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Oct 21, 2009 7:15 AM by seanpk.ca  
Click to view EDUARDO's profile   1 posts since
Oct 21, 2009

Oct 21, 2009 12:12 AM

Boost and Large File support


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?

Click to view seanpk.ca's profile   3 posts since
Nov 25, 2008
1. Oct 21, 2009 7:16 AM in response to: EDUARDO
Re: Boost and Large File support
Its been a while since I dealt with _LARGE_FILES, but yes, I do remember needed to re-compile everything that touched STL.

Based on your linker message, I bet you can find the symbol:


.boost::re_detail::lookup_default_collate_name(const
std::basic_string<char,std::char_traits<char>,std::allocator<char>


(_LFS_ON removed) in your boost library.

Bottom Banner