some questions about Boost libraries
hello all .
i have just downloaded the latest boost source codes and compiled them, and configured the stuff as i should have!
and then i tried to compile some examples to see how stuff works, and also to check if everything went well! .
one of the examples ran well! but the other one which you can see below, gave me couple of errors!
Code:
#include<iostream>
#include<boost/filesystem/operations.hpp>
namespace bfs=boost::filesystem;
int main()
{
bfs::path p("second.cpp");
if(bfs::exists(p))
std::cout<<p.leaf()<<std::endl;
}
and errors:
Code:
||=== boost example, Debug ===|
obj\Debug\main.o||In function `_Z41__static_initialization_and_destruction_0ii':|
F:\Program Files\CodeBlocks\include\boost-1_40\boost\system\error_code.hpp|205|undefined reference to `boost::system::get_system_category()'|
F:\Program Files\CodeBlocks\include\boost-1_40\boost\system\error_code.hpp|206|undefined reference to `boost::system::get_generic_category()'|
F:\Program Files\CodeBlocks\include\boost-1_40\boost\system\error_code.hpp|211|undefined reference to `boost::system::get_generic_category()'|
F:\Program Files\CodeBlocks\include\boost-1_40\boost\system\error_code.hpp|212|undefined reference to `boost::system::get_generic_category()'|
F:\Program Files\CodeBlocks\include\boost-1_40\boost\system\error_code.hpp|213|undefined reference to `boost::system::get_system_category()'|
obj\Debug\main.o||In function `_ZThn48_NK5boost16exception_detail10clone_implINS0_19error_info_injectorINS_10filesystem22basic_filesystem_errorINS3_10basic_pathISsNS3_11path_traitsEEEEEEEE7rethrowEv':|
)]+0x80)||undefined reference to `boost::filesystem::detail::status_api(std::string const&, boost::system::error_code&)'|
F:\Program Files\CodeBlocks\include\boost-1_40\boost\throw_exception.hpp:(.text$_ZN5boost6system10error_codeC1Ev[boost::system::error_code::error_code()]+0x14)||undefined reference to `boost::system::get_system_category()'|
||=== Build finished: 7 errors, 0 warnings ===|
my question is , how should i know which header file needs which *.lib file!
i think the above errors are due to the absence of a lib file of some kind!
so please help me on this !
and the second question is how can i find more about classes, functions and other useful stuff in boost , just like what we have in C++ Reference [C++ Reference] with examples for each of them , so that i can understand how to use them in my program .
thank you all in advance