V
Vespasian
I am getting the follwoing errors,
1. temp error LNK2019: unresolved external symbol "public:
__thiscall Spice<int>::Spice<int>(void)" (??0?$Spice@H@@QAE@XZ)
referenced in function _main
2. temp fatal error LNK1120: 1 unresolved externals
when I compile the follwing code
#MY HEADER FILE
template<class X>
class Spice {
public:
Spice();
private:
};
# CPP FILE #1
#include <iostream>
#include "temp.h"
using namespace std;
template<class X>
Spice<X>::Spice()
{
sdafdsafsda;
}
# CPP FILE #2
#include <iostream>
#include <string>
#include "temp.h"
using namespace std;
int main(void) {
Spice<int> a;
return 0;
}
\
The compiler doesn't catch the 'sdafdsafsda' error in CPP FILE #1. Any
help is appreciated,
TIA,
ves
1. temp error LNK2019: unresolved external symbol "public:
__thiscall Spice<int>::Spice<int>(void)" (??0?$Spice@H@@QAE@XZ)
referenced in function _main
2. temp fatal error LNK1120: 1 unresolved externals
when I compile the follwing code
#MY HEADER FILE
template<class X>
class Spice {
public:
Spice();
private:
};
# CPP FILE #1
#include <iostream>
#include "temp.h"
using namespace std;
template<class X>
Spice<X>::Spice()
{
sdafdsafsda;
}
# CPP FILE #2
#include <iostream>
#include <string>
#include "temp.h"
using namespace std;
int main(void) {
Spice<int> a;
return 0;
}
\
The compiler doesn't catch the 'sdafdsafsda' error in CPP FILE #1. Any
help is appreciated,
TIA,
ves