Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Using dynamic library in QNX7: Page 1 of 2 (2 Items)
   
Using dynamic library in QNX7  
Hello,

I get started with vsomeip library which is built & provided by QNX, & I am using QNX7. A simple application "service-example.cpp" is used as jump-start, it is attached & already available under the following link: 

https://github.com/GENIVI/vsomeip/wiki/vsomeip-in-10-minutes 

The problem is... When building the application, I get the following error message: 
"undefined reference to vsomeip::runtime::get()" 

* More details about the build environment: 
- I am using QNX executable > C/C++ 
- Shared library path is already set, via Window > Preferencess > QNX > Shared Libraries 
- The header files are copied to: /home/user/qnx700/target/qnx7/usr/include 
- Noting that: For QNX C/C++ executable, there is no linker options -l nor -L ?!

- When commenting out the line of creating the service
app = vsomeip::runtime::get()->create_application("Hello"); 
the program is built fine !

- the namespace of vsomeip is used: using namespace vsomeip; 
- The main header file is Included: #include <vsomeip/vsomeip.hpp> 


Thank you. 

Best regards, 
Ahmed
Attachment: Text server_vsomeip.cpp 306 bytes