query: Unit test is throwing a linking error when functions are defined in .cpp file and compiles successfully when defined in .h file
positive_passages.docid: 1289
positive_passages.text: Why can templates only be implemented in the header file?
negative_passages.docid: 2480
negative_passages.text: Why do function pointer definitions work with any number of ampersands '&' or asterisks '*'?
negative_passages.docid: 149350
negative_passages.text: 'foo' was not declared in this scope c++
negative_passages.docid: 123736
negative_passages.text: Unit testing for C++ code - Tools and methodology
negative_passages.docid: 104387
negative_passages.text: Which one is called when existing an extern function with the same name as an inline function?
negative_passages.docid: 145658
negative_passages.text: C++11 does not deduce type when std::function or lambda functions are involved
negative_passages.docid: 66080
negative_passages.text: g++ undefined reference to typeinfo
negative_passages.docid: 6559
negative_passages.text: How do I remove code duplication between similar const and non-const member functions?
negative_passages.docid: 108400
negative_passages.text: Using "namespace foo {" instead of explicitly qualifying outside of header files
negative_passages.docid: 15808
negative_passages.text: Separating class code into a header and cpp file
negative_passages.docid: 39122
negative_passages.text: C error: undefined reference to function, but it IS defined
negative_passages.docid: 44299
negative_passages.text: Why does "typdef struct { struct S *s; } S;" containing a pointer to same type compile?
negative_passages.docid: 33453
negative_passages.text: Why do I get "unresolved external symbol" errors when using templates?
negative_passages.docid: 91472
negative_passages.text: Why do I get syntax error when I try to run my C++ program after compiling it?
negative_passages.docid: 137158
negative_passages.text: C++ CLI error C3767: candidate function(s) not accessible
negative_passages.docid: 77409
negative_passages.text: How do I assign an alias to a function name in C++?
negative_passages.docid: 2521
negative_passages.text: Storing C++ template function definitions in a .CPP file