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<char, std::char_traits<char>, std::allocator<char> > const&)'"

Here is the simple application source:
--------------------------------Sample application source:
#include <stdio.h>
#include <boost/filesystem.hpp>

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