Boost logo

Boost Users :

Subject: [Boost-users] boost 1.44.0 undefined reference to boost::filesystem2::no_check
From: Asif Fayyaz (asif.fayyaz_at_[hidden])
Date: 2010-10-05 07:15:59


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net