Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

First Boost program

I have tried to write my first Boost program from information on the Boost libraries site. Here is the code:

#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) << " " );
}

It shows me this error:

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 ==========

How can this error be fixed?


1 Answers

The answer to a similiar question outside SO was:

Download and install the Windows SDK from here

(link in quote may not be fitting for your system)

like image 198
Andreas Dolk Avatar answered Aug 27 '26 21:08

Andreas Dolk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!