]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | // Copyright 2014 Renato Tegon Forti, Antony Polukhin. |
92f5a8d4 | 2 | // Copyright 2015-2019 Antony Polukhin. |
7c673cae FG |
3 | // |
4 | // Distributed under the Boost Software License, Version 1.0. | |
5 | // (See accompanying file LICENSE_1_0.txt | |
6 | // or copy at http://www.boost.org/LICENSE_1_0.txt) | |
7 | ||
8 | #include "../b2_workarounds.hpp" | |
9 | ||
10 | //[callplugcpp_tutorial8 | |
11 | #include <iostream> | |
12 | #include "refcounting_api.hpp" | |
13 | ||
14 | int main(int argc, char* argv[]) { | |
15 | /*<-*/ b2_workarounds::argv_to_path_guard guard(argc, argv); /*->*/ | |
16 | boost::shared_ptr<my_refcounting_api> plugin = get_plugin( | |
92f5a8d4 | 17 | boost::dll::fs::path(argv[1]) / "refcounting_plugin", |
7c673cae FG |
18 | "create_refc_plugin" |
19 | ); | |
20 | ||
21 | std::cout << "Plugin name: " << plugin->name() | |
22 | << ", \nlocation: " << plugin->location() | |
23 | << std::endl; | |
24 | } | |
25 | //] |