J'ai essayé d'écrire mon premier programme Boost à partir d'informations sur le site des bibliothèques Boost. Voici le code:Premier programme Boost
#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>
int main()
{
using namespace boost::lambda;
typedef std::istream_iterator<int> in;
std::for_each(
in(std::cin), in(), std::cout << (_1 * 3) << " ");
}
Il me montre cette erreur:
1>------ Build started: Project: boost_librarys, Configuration: Debug Win32 ------
1> boost_librarys.cpp
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Comment cette erreur fixée?
La bibliothèque kernel32 appartient à Windows et n'a rien à voir avec Boost. – Philipp