Linking fails on my Linux system

The Snap project uses the -std=c++0x option to compile with C++ 2011 features such as smart pointers. This means all the libraries that we link against of must also have been compiled with the flag to be compatible.

It has been reported that under Gentoo you may run in the problem for different libraries. There is a command line to fix the problem with, for example, log4cplus:

# CXXFLAGS="-std=c++0x ${CXXFLAGS}" emerge -av log4cplus

Each platform has a different way to handle such problem. Note that our system requires c++0x. Without it, you'll have a real hard time to get everything to compile.

Source: Problem found and fix proposed by Daniel Latorre.

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly