Intel编译器icpc版本13.0.1(gcc版本4.4.6兼容)
#include "boost/scoped_ptr.hpp"
#include <vector>
int main()
{
std::vector<boost::scoped_ptr<int> > v;
v.push_back(boost::scoped_ptr<int> (new int(127)));
return 0;
}
icpc bbb21.cpp
/devjuser1/jp/ccjp/avinokur/tmp/icpclHkUcJ.o: In function `main':
bbb21.cpp:(.text+0xfa): undefined reference to `boost::scoped_ptr<int>::scoped_ptr(boost::scoped_ptr<int> const&)'
bbb21.cpp:(.text+0x136): undefined reference to `boost::scoped_ptr<int>::scoped_ptr(boost::scoped_ptr<int> const&)'
bbb21.cpp:(.text+0x195): undefined reference to `boost::scoped_ptr<int>::scoped_ptr(boost::scoped_ptr<int> const&)'
bbb21.cpp:(.text+0x254): undefined reference to `boost::scoped_ptr<int>::scoped_ptr(boost::scoped_ptr<int> const&)'
怎么了?