c++ - Undefined reference to boost::filesystem -


Since I am new to promoting I have made a mistake. I used the sudo apt-get install libboost-all-dev command to overcome some errors, but after that it seems I have done something very bad now as the following Errors are:

  Error: `Promotion :: File System :: Extension :: remove_all (boost :: filesystem :: path const & system :: error_code *) 'Error: undefined reference To `Promote: Filesystem :: Path :: FileName (const) 'error:' Prompt for undefined reference: FileSystem :: Extension :: create_directory (boost :: filesystem :: path const & amp;; boost :: system :: error_code *) ' 

And these errors tell a lot of undefined references Happened. Only after studying and trying some solutions, I still had some success related to this issue but I got a clue when I got the dpkg -s libboost-dev | Grep 'version' gives it version: 1.48.0.2 , but when I run

cat / usr / include / boost / version .hpp | Goop "BOOST_LIB_VERSION" gives me

BOOST_LIB_VERSION should be similar to BOOST_VERSION

defining BOOST_LIB_VERSION "1_46_1

I also tried There are still errors with the linking -lboost :: system and -lboost :: filesystem. Can it be a problem due to two different versions? Can anyone tell me that by moving forward in this situation What should I first do and make some more mistakes? What if I version: 1.48.0.2 I'm trying and I'm trying again ... Somebody has done something like this before or any suggestions / comments?

Your assistance will be much appreciated.

Thanks

PS I am using Qt builder

edit

/ b2 and installing libraries with bootstrap.sh What I'm doing:

Boost C ++ libraries were created successfully!

The following directory in the compiler Should include the following paths:

  / home / black / workspace / cap / lib / bo linker should be linked to the following directory in the library path:  
 < Code> / home / black / workspace / cap / lib / boost_1_53_0 / stage / lib  

/ code>

I have added these paths to several places like That is included in the path of LIB path and C_INCLUDE_PATH for LD_LIBRARY_PATH, PATH, etc .. Also I have them in my .pro file and LIBS Include in T was added .. But something is not working :( what is right or what am I doing wrong? Can you please tell me where to add these routes?


Comments