C言語スレから誘導されてきました

「test.c」
#include <stdio.h>
#include "func.h"
int main(void)
{int a = func();printf("%d\n", a);return 0;}

「func.c」
#include <stdio.h>
#include "func.h"
int func(void)
{int a;printf("input number: ");scanf("%d", &a);return a;}

「func.h」
int func(void);

単品のファイルに書いた場合はエラー無くコンパイルできます。
vcvars32.batを実行した後[cl test.c func.c]を実行すると以下のエラーがでてコンパイルできません。
/out:test.exe
test.obj
test.obj : error LNK2019: 未解決の外部シンボル _func が関数 _main で参照されまし
た。
test.exe : fatal error LNK1120: 外部参照 1 が未解決です。