S
S
shushlyakov2015-07-13 11:43:44
linux
shushlyakov, 2015-07-13 11:43:44

Si. How to connect and use two libraries with the same interface?

There are two libraries with almost identical *.h files.
It is necessary during the execution of the program, depending on the parameters, to access one of them.
How is this done in C?
Is there any way to rename these functions?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
shushlyakov, 2015-07-13
@shushlyakov

#include <dlfcn.h>

D
DancingOnWater, 2015-07-13
@DancingOnWater

Load dynamically?

V
Vitaly Filinkov, 2015-07-13
@vitfil

Make your own wrappers for both libraries, and it makes more sense to rename functions for it?

A
AxisPod, 2015-07-14
@AxisPod

www.yolinux.com/TUTORIALS/LibraryArchives-StaticAn... Hold on, it's all in there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question