|
Boost Users : |
Subject: Re: [Boost-users] undefined reference to `boost::program_options
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-21 14:31:28
AMDG
G.NAGENDAR wrote:
> When i run my C++ program which is using boost library, i am getting these
> errors
>
> main.o: In function
> `boost::program_options::variables_map::operator[](std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&) const':
> /usr/local/include/boost-1_35/boost/program_options/variables_map.hpp:161:
> undefined reference to
> `boost::program_options::abstract_variables_map::operator[](std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&) const'
> /usr/local/include/boost-1_35/boost/program_options/variables_map.hpp:161:
> undefined reference to
> `boost::program_options::abstract_variables_map::operator[](std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&) const'
> /usr/local/include/boost-1_35/boost/program_options/variables_map.hpp:161:
> undefined reference to
> `boost::program_options::abstract_variables_map::operator[](std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&) const'
> /usr/local/include/boost-1_35/boost/program_options/variables_map.hpp:161:
> undefined reference to
> `boost::program_options::abstract_variables_map::operator[](std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&) const
>
Are you linking to the program options library?
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net