Skip to content

Instantly share code, notes, and snippets.

@JVero
Last active October 11, 2018 02:06
Show Gist options
  • Save JVero/e2bb64b87ce2c22b369af1eb1ce721c5 to your computer and use it in GitHub Desktop.
Save JVero/e2bb64b87ce2c22b369af1eb1ce721c5 to your computer and use it in GitHub Desktop.
clang++ -c mat.cpp -o mat.o;
clang++ main.cpp mat.o;
#include "mat.hpp"
#include<iostream>
int main() {
std::cout << a << std::endl;
return 0;
}
#include"mat.hpp"
int a = 4;
#pragma once
extern int a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment