
Hi, it seems to me that the linker is missing the library (e.g. -lboost_filesystem) Could you please send the command-line you use to compile the simple program? Best, Cedric On Tuesday, 5. October 2010 13:15:59 Asif Fayyaz wrote:
Hi,
I am compiling a very simple application using boost filesystem. However it is giving following error message:
"undefined reference to `boost::filesystem2::no_check(std::basic_string
const&)'" Here is the simple application source: --------------------------------Sample application source: #include
#include int main() { std::string m_FileName(boost::filesystem::path("testfile1.txt", boost::filesystem::no_check).native_file_string());
printf("Testboost.....%s\n", m_FileName.c_str()); return 0; } --------------------------------
More Details: Libraries being used: libboost_filesystem-gcc41-mt-1_44.a libboost_system-gcc41-mt-1_44.a
Boost version: 1.44.0
Boost was build using command: bjam --build-type=complete --layout=versioned
Operating System: Linux CentOS5.2
Any help in this regard will be appreciated.
Asif