Build VS 2015, Opencv 4.5.1 with cuda 11.0: LNK1210 exceeded internal ILK size limit(error only on debug mode)

most people either

  • only build the main repository and no contrib code (cuda is contrib), then the world library’s size is manageable
  • don’t link everything into a world library but individual module libraries (opencv_core, opencv_highgui, …)

your other project doesn’t have to link against opencv_world. it can just as well link against the specific module libraries it actually uses. ppencv_world is a mere convenience. one might even say it’s for lazy people.