I am currently using MS VS 2K5 and when doing something as simple as putting the main in one file and the functions in another file, on build, the solution throws errors.

The answer must be simple, i just can't figure it out, Thanks!

Index.cpp
Code:
#include <iostream>
#include <string>
using namespace std;

// prototypes
template <typename T>
T func1(T *a);

int main()
{
	int ary1[] = {5,4,3,2,1};
	double ary2[] = {1.1,2.2,3.3,4.4,5.5};

	cout << func1(ary1) << "  " << func1(ary2);

cout << "\n\n\n\n\n";
system("pause");
return 0;
}
funcs.cpp
Code:
#include <iostream>
#include <string>

using namespace std;

// function func1
template <typename T>
T func1(T *a)
{
	T large=0;
	for (int i=0; i<5; i++)
	{
		if (large < *(a+i))
		large = *(a+i);
	}
	return large;
}
Errors:
1>------ Build started: Project: GoodTimes, Configuration: Debug Win32 ------
1>Compiling...
1>funcs.cpp
1>index.cpp
1>Generating Code...
1>Linking...
1>index.obj : error LNK2019: unresolved external symbol "int __cdecl func1<int>(int *)" (??$func1@H@@YAHPAH@Z) referenced in function _main
1>index.obj : error LNK2019: unresolved external symbol "double __cdecl func1<double>(double *)" (??$func1@N@@YANPAN@Z) referenced in function _main
1>C:\Documents and Settings\BLackey\My Documents\Visual Studio 2005\Projects\GoodTimes\Debug\GoodTimes.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\BLackey\My Documents\Visual Studio 2005\Projects\GoodTimes\GoodTimes\Debug\BuildLog.h tm"
1>GoodTimes - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========