Last active
October 11, 2018 02:06
-
-
Save JVero/e2bb64b87ce2c22b369af1eb1ce721c5 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
clang++ -c mat.cpp -o mat.o; | |
clang++ main.cpp mat.o; |
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
#include "mat.hpp" | |
#include<iostream> | |
int main() { | |
std::cout << a << std::endl; | |
return 0; | |
} | |
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
#include"mat.hpp" | |
int a = 4; |
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
#pragma once | |
extern int a; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment