diff --git a/cpp/class.cpp b/cpp/class.cpp index e7b11c0..c88abf3 100644 --- a/cpp/class.cpp +++ b/cpp/class.cpp @@ -1454,7 +1454,7 @@ int main() { Great explanation: - Why swap should be afriend: + Why swap should be a friend: */ { CopyAndSwap c0(2, 2); diff --git a/shared_library/basic/README.md b/shared_library/basic/README.md index e83d835..27bd33d 100644 --- a/shared_library/basic/README.md +++ b/shared_library/basic/README.md @@ -4,5 +4,6 @@ Basic example. Creates a shared and a static library from `a.c` and `b.c`. Used in the following answers: +- https://stackoverflow.com/questions/3961446/why-does-gcc-not-implicitly-supply-the-fpic-flag-when-compiling-static-librarie/65005457#65005457 - https://unix.stackexchange.com/questions/89211/how-to-test-whether-a-linux-binary-was-compiled-as-position-independent-code/435038#435038 - https://unix.stackexchange.com/questions/226524/what-system-call-is-used-to-load-libraries-in-linux/462710#462710