Hello again,

We also got the Simple Bundle example working.

For some reason I do not get the findCELIX error again.
With the new install cmake runs fine.

But I get a  errors running make:
marcel@Ubuntu2004B:~/workspace/myproject/build$ make
[  7%] Building CXX object 
bundles/HelloWorld_cxx/CMakeFiles/HelloWorld_cxx.dir/src/HelloWorldActivator.cc.o
/home/marcel/workspace/myproject/bundles/HelloWorld_cxx/src/HelloWorldActivator.cc:11:51:
 error: ‘BundleContext’ is not a member of ‘celix’
   11 |   explicit BundleActivator(std::shared_ptr<celix::BundleContext> _ctx) 
: ctx{std::move(_ctx)} {
      |                                                   ^~~~~~~~~~~~~
....

Switching to C++17 solves the errors.
In ${WS}/myproject/CMakeLists.txt change:
  SET(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
To
  SET(CMAKE_CXX_FLAGS "-std=c++17 ${CMAKE_CXX_FLAGS}")

And all works fine.

I am glad I can finally start learning Celix from a working development 
environment.
Hope this helps you to improve the package

Greetings

Marcel









-------- Disclaimer --------
This email and any files transmitted may contain proprietary and confidential 
information of ICT Group or any of its subsidiaries (“ICT”) and is intended 
only for the (use of the) named recipient(s) above. If you have received this 
message in error or are not the intended or named recipient(s) of this message, 
please immediately notify the sender by return and delete this email message 
from your computer. Any views or opinions presented are solely those of its 
author and do not necessarily represent those of ICT. You are hereby notified 
that unauthorized disclosure, use, dissemination, forwarding, printing or 
copying of this e-mail and its attachments either whole or partial of its 
contents is strictly prohibited. ICT cannot guarantee that email communications 
are secured and error-free and does not accept any liability for damages 
resulting from the use of email. The general terms and conditions of purchase 
respectively sale and delivery of ICT are applicable to all transactions and 
undertakings resulting therefrom.

Reply via email to