Advertisement
TwITe

Untitled

Apr 1st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. //main.cpp
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. void foo();
  6.  
  7. int main() {
  8.     foo();
  9.     return 0;
  10. }
  11.  
  12. //lib.cpp -> lib.a
  13. #include <iostream>
  14. using namespace std;
  15.  
  16. void foo() {
  17.     cout << "Function foo was called from a static library" << endl;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement