Failed at linking C++ [undefined reference boost::filesystem3 … ]?

It almost looks like it's trying to link to the 1.42.0 version which may not contain those symbols. You could remove the 1.42.0 version, run ldconfig, and try your luck again.

Just deleting the . So of the 1.42? Or do I have to delete extra files?

Anyway, I think this is kinda relevant---> Just noticed this line on the big compiling log: "/usr/bin/ld: warning: libboost_system.so. 1.42.0, needed by /usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/libboost_filesystem. So, not found (try using -rpath or -rpath-link)" libboost_system.so.

1.42.0 is located just on /usr/lib, not on /usr/bin/ld (in fact ld inside bin is not a folder, it is some kind of binary). Any ideas about that? Should I create a folder ld and copy that file inside it?

It doesn't sound right – Pphax Nov 25 at 2:16 Remove the Boost libraries from your distribution install or upgrade them. Why are you compiling Boost by hand anyways? – Nick Betcher Nov 25 at 2:23 I don't remember how did I install Boost, I guess I installed it through apt-get.

Is there a easy way to delete alllll of its files? I will do an apt-get remove libboost*. But since I apparently have two versions... – Pphax Nov 25 at 2:30 ooooooookay I did an apt-get remove libboost* and just in case tried to compile and it did work with no errors!

What happened?! – Pphax Nov 25 at 2:32 The compile job was attempting to link to the 1.42.0 version installed on your system. Removing the 1.42.0 system install fixes the problem because they're not there anymore to link to.

Don't forget to mark as answer. ;) – Nick Betcher Nov 25 at 2:56.

Nick Betcher is right. You are mixing two versions of boost::filesystem binaries. By default, boost 1.42 is building with version 2 and Boost 1.47 with version 3.

Alternatively you can define a macro BOOST_FILESYSTEM_VERSION 2; it disables features of version 3 and the linker errors dismiss.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions