Hi,
I have one big problem with C::B. I just don`t know how to link header, i wrote something like this:
//main.cpp
#include "foo.h"
int main(){
bar A;
A.show();
}
//foo.h
class bar{
public:
int qwerty;
int show();
};
//foo.cpp
#include "foo.h"
int bar::show(){
return qwerty;
}
And when I try to compile,build and run this i got error "undefined reference to show()", what exactly means that something went wrong with linkink these files. I have no idea how to show linker what to link. (before i was using Kdevelop, and there was no issue with linker)
Sorry for that pool above, my mistake.