Hi, does anyone know why I am getting these error messages?
I'm using Code::Blocks IDE and MinGW(GCC) compiler.
I included boost (v1.39.0) libraries already. I can use them correctly with #include <boost/lexical_cast.hpp>
Also, I defined BOOST_NO_DEPRECATED
#include <boost/filesystem/operations.hpp>
#include <string>
using namespace std;
int main()
{
//The meta data file that holds the names of all objects that can be backed up
const string OBJECT_META = "Files.lst";
cout << boost::filesystem::file_size(OBJECT_META);
return 0;
}
obj\Release\main.o:main.cpp:(.text+0x1b)||undefined reference to `boost::system::get_system_category()'|
obj\Release\main.o:main.cpp:(.text+0x25)||undefined reference to `boost::system::get_generic_category()'|
obj\Release\main.o:main.cpp:(.text+0x2f)||undefined reference to `boost::system::get_generic_category()'|
obj\Release\main.o:main.cpp:(.text+0x39)||undefined reference to `boost::system::get_generic_category()'|
obj\Release\main.o:main.cpp:(.text+0x43)||undefined reference to `boost::system::get_system_category()'|
)]+0xcc)||undefined reference to `boost::filesystem::detail::file_size_api(std::string const&)'|
||=== Build finished: 6 errors, 0 warnings ===|
Thanks.