Created
April 13, 2021 01:29
-
-
Save msmoiz/7553e03e6609b29817b840767acbef8c to your computer and use it in GitHub Desktop.
Source and header files accompanying the Unrealistic.dev post on complex C++ compilation from the command line.
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 "static.h" | |
#include "shared.h" | |
#include <iostream> | |
void local_hello() | |
{ | |
std::cout << "Hello local world!" << std::endl; | |
} | |
int main() | |
{ | |
local_hello(); | |
static_hello(); | |
shared_hello(); | |
} |
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 "static.h" | |
#include <iostream> | |
void static_hello() | |
{ | |
std::cout << "Hello static world!" << std::endl; | |
} |
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 | |
void static_hello(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment