0

I have a old static library(class implement), I'd like to change a non virtual function to virtual function in a class, should I recompile the library?

curiousguy
  • 8,038
  • 2
  • 40
  • 58
liuaifu
  • 147
  • 1
  • 8

2 Answers2

4

Yes. You must recompile the library and applications using it.

Jesper Juhl
  • 30,449
  • 3
  • 47
  • 70
2

I wanted to add little more reasoning to answer of @jesper Yes because now there will be new entry per new virtual function in vtable so recompilation is must.

Ali Kazmi
  • 1,460
  • 9
  • 22