c++ - Including boost::filesystem produces linking errors -


OK first, I'm joining boost_system and boost_filesystem.

My compiler is a

>

So when I am involved:

  #include "boost / filesystem.hpp"  

I'm linking to errors like:

  .. \ .. \ libraries \ boost \ libs \ libboost_system.a (error_code.o): error_code.cpp: ( .text + 0xe35) || Undefined reference to `_Unwind_Resume '. .. \. \ Libraries \ boost \ libs \ libboost_system.a (error_code.o): error_code.cpp: (.eh_frame + 0x12) || Undefined reference to `__gxx_personality_v0 '.  

When trying to add a C ++ program with the GCU, which I have found after the slightest search, is the highest GNU C compiler But I've printed the exact build command which is running, and it's definitely connecting with G ++.

If I comment on it, then everything works fine.

Any thoughts? Apart from this, on one side, there is a good place to get windows binary to promote anyone? The build system is giving me problems, so I am using some binaries which have come with it

OK, I got the problem. It's a bit complicated.

GCC is gradually becoming more consistent with IS 14882 in the 4.x branch. As they move forward, they are removing the characteristics of deprecated non-standard complaints.

While 4.1.x seems to have simply not been disliked or removed, 4.3.x actually seems to have been removed from them. It means 4.3.x and there are more backward compatibility issues that are with things compiled in the 3.x bracket (which dislikes and now uses removed features)

I have a mix and The combination of binary was using combination which was compiled with GCC 3.x, 4.1.x and 4.3.x, whichever one I have used, I got a similar error, because at least one binary I was linking to that compiler Was inconsistent on which I was trying moment.

Now I am using GCC 4.1.2 and with this most of my binary has been compiled. How do I still use some keys to 3.x, which is why I am not upgrading to 4.3.x yet.

Hopefully this was less confusing in reading instead of reading ...

A good post seems to be addressing some issues because they are 4.1.x

with

Comments