[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] StdVector again
- From: Daniel Stonier <d.stonier@xxxxxxxxx>
- Date: Thu, 27 Aug 2009 19:23:46 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=agf5QlwhngdlItvWx4DD9oz1NVHBexLFW0dnyT5Sv5o=; b=nSKe3OBIXZmNWKfa0GEb4ADJINvnColc2wlXFZFF61xEWRM7BVCF+HD42CJ86+Rinz HLpSGWnXFTYMSLpIMe2Mn/Df92VaTuccabHEaR+0aipF9yqZ980f93ydo+gxdeCRt482 kfmbvAf+AqiQzi12EmTppcqhNT6+Mbf9VkoG4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=SsiVCxAPJ5f/pEpfe0x008Z6IXrxEMPqLh5ap9TgRXss7dIoOpVVjg8vKhoNXUuDCD PboSLVKoc8QPpPbVqYiflcz3lxQHB9VYNoenA3o1fksih54eZ7MSthaouhlwzxQZdSFy eG6cHrRICwQrXsGsxiOXfUjnCs8DJPtSTZIi8=
Some more problems with StdVector. Are these problems common? Or am I
just trying to tackle it the wrong way?
This time with boost program options:
*************************************************************************
#include <Eigen/StdVector>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
int main(int argc, char **argv) {
int ip;
po::options_description config_file_options;
po::variables_map vm;
config_file_options.add_options()
("ip", po::value< int >(&ip)->default_value(66),"The peekabot
server ip address. [192.168.0.66].")
;
return 0;
}
*************************************************************************
$ g++ -c main.cpp -Wall -ggdb -O0
$ g++ -o test main.o -lboost_program_options-mt
*************************************************************************
main.o:(.rodata._ZTVN5boost15program_options11typed_valueIicEE[vtable
for boost::program_options::typed_value<int, char>]+0x18): undefined
reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&,
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >, false> const&, bool)
const'
*************************************************************************
Not sure where to start hunting this one down...
Regards,
Daniel Stonier.