Two version os openCV in one application

Hi All,
I want to keep two version of openCV for one app. currently we are using older version of openCV now we want to integrate one another framework which is using openCV2.

So please help how to achieve this.

thanks.

that’s a terrible idea
(if not outright impossible, since you cannot link 2 versions of any library, without getting duplicate symbols)

please refactor your old codebase, so it compiles with recent opencv