I am trying to write a shared library using C but need to call some C++ functions. So I have created a shared library containing the required C++ functions. How can I call those function from C code, I tried dlopen() and dlsym() in the C code. It creates handle for the C++ library but can't call the functions.
sanchit223 0 Newbie Poster
Recommended Answers
Jump to PostDid you code it like this link ?
c++ classes and their methods are not useable from c. If you want to do that then you will have to create a c++ …
All 3 Replies
Salem 5,265 Posting Sage
sanchit223 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.