Will a C compiled .so work with a C++ application? -


if want dynamically link shared library (.so) c++ application (which built g++) using ld_preload, matter if .so generated c source file (using gcc) or c++ source file (using g++)? , why or why not?

thanks helping me understand this.

yes, c++ executable can linked (both statically , dynamically) c library.

this deliberate. c++ abis designed backwards compatible.

you have ensure declarations of functions , on of library symbols, written in c++ program, marked extern "c" denote crossing language boundary. typically, library's own shipped header files you.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -