What to do if libjpeg library conflicts

I provide A dynamic library to others, which depends on libjpeg8. However, when others associate my lib with their application, which is dependent on libjpeg6, there are some conflicts leading to failure.

The dilemma is that they will not replace libjpeg6 with a higher version, and I have to use the new functions in libjpeg8. How can I solve this problem in one process?

+3
source share
1 answer

To avoid a character conflict, I see 2 options:

  • link statically libjpeg,
  • enter a namespace in libjpeg (since configure does not offer this option, it will be a difficult patch).
0
source

All Articles