Enabling boost :: filesystem creates bind errors

First, I connect to boost_system and boost_filesystem.

My compiler custom build MinGW with GCC 4.3.2

So when I turn on:

#include "boost/filesystem.hpp"

I get binding errors such as:

..\..\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'|

Which, after a little search that I found, most often occurs when you try to link a C ++ program to gcc, the GNU C compiler. But I printed out the exact build command that Code :: Blocks is running and it is definitely related to g ++.

If I comment on this, everything will be fine.

? , , - Windows ? , , MinGW

0
2

, . .

GCC IS 14882 4.x. , .

4.1.x, , , 4.3.x, , . , 4.3.x , 3.x( )

, GCC 3.x, 4.1.x 4.3.x, , , , , .

GCC 4.1.2, . 3.x, 4.3.x.

, , ...

, , , , 4.1.x

+2

Windows: www.boost.org - . " ", g++ MingGW, . , MingGW , Windows. , .

, , , lib - . Boost lib , , lib ( , / , ). , g++, MingGW, boost Visual Studio.

0

Source: https://habr.com/ru/post/1751932/


All Articles