Testing a live coding technique using DLLs (Linux) Follow the steps
- use this command to compile the library
g++ -fPIC -shared myclass.cc -o myclass.so
- use this command to compile the executable
g++ class_user.cc -ldl -o class_user
-
execute class_user
-
open myclass.cc and edit the string at line 21
-
recompile the library
-
type "y" in the prompt of the executable and the new string should appear