At the top of a cpp file, I have
namespace PQL {
    class Synonym {
    ...
    public:
        ...
        int size();
    };
}
// removing the below chunk makes it work
int Synonym::size() {
    return ids.size();
}
Why does the bottom chunk make the code fail? I am creating the implementation of the function? Other functions defined a similar way works.
UPDATE:
The error I got looks like:
Error 1 error LNK2005: "public: int __thiscall PQL::Synonym::size(void)" (?size@Synonym@PQL@@QAEHXZ) already defined in main.obj H:\Dropbox\Sch\CS3202\SPA_CPP\SPA\pql.obj
 
     
     
     
     
    