Compiling log4cpp 1.0 with gcc 4.3 or 4.4

In gcc 4.3 some bugs were fixed, unfortunately they can cause compile errors with code that would compile with older versions.

In particular this is the case with log4cpp 1.0 which fails with the following message: BasicLayout.cpp:37:5: error: ‘auto_ptr’ in namespace ‘std’ does not name a type

Luckily the fix is very simple; all that is required to get a clean compile is add an #include <memory> in src/BasicLayout.cpp.

One thought on “Compiling log4cpp 1.0 with gcc 4.3 or 4.4

Leave a Reply

Your email address will not be published. Required fields are marked *