Is it template code? If so, see Why can't I separate the definition of my templates class from its declaration and put it inside a .cpp file? and subsequent questions.