#include "Header.h"
int main()
{
Second();
}
#pragma once
int Second()
{
return 0;
}
При компиляции ошибки:
Severity Code Description Project File Line Suppression State
Error LNK2005 "int __cdecl Second(void)" (?Second@@YAHXZ) already defined in Source.obj Project1 C:\Users\Dima\Documents\Visual Studio 2017\Projects\Project1\Project1\Source1.obj 1
Error LNK1169 one or more multiply defined symbols found Project1 C:\Users\Dima\Documents\Visual Studio 2017\Projects\Project1\Debug\Project1.exe 1