So, I am trying to link two files. The problem is with print()
Error 1 error LNK2005: "void __cdecl print(void)" (?print@@YAXXZ) already defined in score.obj main.obj konsole
Here are the files
score.h
1 2 3 4 5 6 7 8 9 10 11
#pragma once
#define score_h
#include <iostream>
usingnamespace std;
void print()
{
cout << "I made it!";
}