Hi, I am building a program in Visual C++ and I get following error:

..\..\basic.cpp(5) : error C2084: function 'int Log(char [])' already has a body
c:\visualcpp\myprogram\basic.h(15) : see previous definition of 'Log'

The main file includes basic.h.


basic.h:
Code:
#ifndef BASIC_H
#define BASIC_H
#pragma once

#define WIN32_LEAN_AND_MEAN

#include <stdio.h>

int Log(char message[]);
#endif

basic.cpp:
Code:
#include "basic.h"


int Log(char message[])   {

    char log_name []= "log.txt";
    FILE *fp;
    
    fp=fopen(log_name,"a");
    fprintf(fp,"%s\n",message);
    fclose(fp);


	return 0;
}