-
-
Save TheCatPlusPlus/9fcb869bd7cbe8df0f4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> cat a.c++ | |
#include <iostream> | |
extern int foo; | |
int main() { | |
std::cout << foo; | |
} | |
> cat b.c++ | |
int foo = 42; | |
> g++ a.c++ b.c++ -o test.exe | |
> .\test | |
42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment