|
Boost Users : |
Subject: [Boost-users] undefined reference to `boost::system::detail::generic_category_ncx()'
From: Antonis Polykratis (antonis.polykratis_at_[hidden])
Date: 2018-09-20 08:59:16
Hello all,
I am new to boost.
I try to use some boost files in my program, but I have trouble with some
of them.
For example
compiling the following program
#include <boost/log/expressions/formatters/date_time.hpp>
int main()
{
return 0;
}
with the command
g++ -std=c++11 test.cpp -o main -I/home/user101/boost/ -L/home/user101/boost
I have a message like the following
/tmp/ccm6UOud.o: In function `boost::system::generic_category()':
test.cpp:(.text._ZN5boost6system16generic_categoryEv[_ZN5boost6system16generic_c
ategoryEv]+0x5):
undefined reference to `boost::system::detail::generic_category
_ncx()'
I also tried to append -lboost_system in the command, but I take back the
following message:
/usr/bin/ld: cannot find -lboost_system
collect2: error: ld returned 1 exit status
Could you please guide me with that? I use boost_1_67 if that makes any
difference (which I do not think so).
Thanks,
Antonis
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