Undefined symbols for architecture x86_64: "Log(char const*)", referenced from: _main in main-cc9ca1.o ld: symbol(s) not found for architecture x86_64
I am just starting to learn cpp.
in main.cpp I have:
#include <iostream>
using namespace std;
void Log(const char* message);
int main() {
    Log("Hello world");
    cin.get();
    
}
in log.cpp I have:
#include <iostream>
 
using namespace std;
void Log(const char* message) {
    cout << message << " hehe" << endl;
}
I can't seem to be able to compile it. I am doing it in visual studio code on Mac.
