Hello fellow programmers.
Im a bit confused about this:

mycode.h:
function call_function();

mycode.c:
function call_function()
{
return 1;
}

main.c:
#include "mycode.h"

function main()
{
var i = call_function();
}

So after testing how to implement good way to use header file im get a bit confused about linkage together. Running script results in empty call. So it isnt compiling mycode.c file.
Is there any solutions?

P.S. I want this so i could hide all file specific functions and variables.


Arrovs once will publish game