From: Anton Gorlov <stalker@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] icinga2
Date: Mon, 2 Jan 2017 17:43:55 +0300
Message-ID: <b9e62f09-58d2-640e-8b8a-55a433d342fb@altlinux.ru> (raw)
In-Reply-To: <0aa45bb8-4005-7ed9-be94-db16d62ae935@altlinux.ru>
Самое интересное - эту либу оно таки видит
То есть если в CMakeLists.txt добавить
FIND_PACKAGE(Boost COMPONENTS program_options REQUIRED)
то в логе вижу
===
-- Found the following Boost libraries:
-- program_options
-- Configuring done
===
А вот здесь оно не срабатывает судя по всему или не доавляет в список либ.
target_link_libraries(icinga-app ${Boost_LIBRARIES} base config cli)
и вот ещё в глаза бросается
в build/icinga-app/CMakeFiles/icinga-app.dir,в link.txt вижу вместо
-lboost_program_options некий -lboost_program_options-mt
02.01.2017 12:50, Anton Gorlov пишет:
> Так а как в cmake правильно фиксить ошибки типа
>
> [100%] Building CXX object icinga-app/CMakeFiles/icinga-app.dir/icinga.cpp.o
> Linking CXX executable ../Bin/Release/icinga2
> CMakeFiles/icinga-app.dir/icinga.cpp.o: In function `Main()':
> /tmp/1/icinga2-2.6.0/icinga-app/icinga.cpp:174: undefined reference to
> `boost::program_options::options_description::options_description(std::string
> const&, unsigned int, unsigned int)'
> /tmp/1/icinga2-2.6.0/icinga-app/icinga.cpp:190: undefined reference to
> `boost::program_options::options_description::options_description(std::string
> const&, unsigned int, unsigned int)'
> CMakeFiles/icinga-app.dir/icinga.cpp.o: In function
> `boost::program_options::variables_map::operator[](std::string const&)
> const':
> /usr/include/boost/program_options/variables_map.hpp:155: undefined
> reference to
> `boost::program_options::abstract_variables_map::operator[](std::string
> const&) const'
>
next prev parent reply other threads:[~2017-01-02 14:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-02 9:00 Anton Gorlov
2017-01-02 9:09 ` Антон Мидюков
2017-01-02 9:19 ` Anton Gorlov
2017-01-02 9:24 ` Anton Gorlov
2017-01-02 9:26 ` Anton Gorlov
2017-01-02 9:30 ` Антон Мидюков
2017-01-02 9:48 ` Michael Shigorin
2017-01-02 9:50 ` Anton Gorlov
2017-01-02 14:43 ` Anton Gorlov [this message]
2017-01-02 15:47 ` Антон Мидюков
2017-01-02 16:14 ` Anton Gorlov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b9e62f09-58d2-640e-8b8a-55a433d342fb@altlinux.ru \
--to=stalker@altlinux.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git