Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //main.cpp
- #include <iostream>
- using namespace std;
- void foo();
- int main() {
- foo();
- return 0;
- }
- //lib.cpp -> lib.a
- #include <iostream>
- using namespace std;
- void foo() {
- cout << "Function foo was called from a static library" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement