Two .libs containing different functions with the same name: how to choose the right one?

I have two static libraries lib1.lib, lib2.lib (not their code) with the same prototype functions, but with different implementations.

I tried to include both, and it seems like it always uses the implementation from the first library.

If I include both of them in my project, is there a way to choose an implementation from a specific library?

+3
source share
1 answer

I think it should be possible to write a thin DLL wrapper associated with each of the static libraries. Please note that this will only work if lib1.lib and lib2.lib are static libraries and that such packaging will be prone to performance lib2.lib .

+5
source

All Articles