1

undefined reference to `sendArrayObj::count()'

view story
linux-howto

http://stackoverflow.com – I have a compilation basic error. My main on a nutshell is: main.cpp #include "sendArrayObj.h" sendArrayObj* sendqueue; void foo(){ int i = sendqueue->count() } int main(){ int i =10; sendqueue = new sendArrayObj(i); foo(); } sendArrayObj.h using namespace std; #include <string.h> #include <string> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <unistd.h> class sendArrayObj{ private: int size,toEnqueue,toDequeue,lastDequeuedInd; unsigned long long totalEnqueued,totalDequeued; public: char** arr; (HowTos)