#include "X.h"
int main()
{
std::vector<X> vec(1);
}
I compile and link with 'c++ main.cpp X.cpp' and get this linker error:
[text]
X-36e580.o: In function `X::set_container(std::vector<X, std::allocator<X> >&)':
X.cpp:(.text+0x10): undefined reference to `X::m_container'
[/text]