Hello,
I have a question. I'm not sure I am using the right terms or anything here, but, I have seen people develop their "projects" (classes etc..) and then creating a .dll file (or .lib) and then importing the files when they need them. But I cannot seem to get my head around it.. So for example:
class Test {
public:
Test();
Test(int theVar)
{
var = theVar;
cout << "You entered: " << this->var;
}
private:
int var;
};
If I had the class above and wanted to export it as a .dll and then import like this:
#include "myClass.dll/.lib"
int main()
{
// object initialise
}
How would I do this? Or, could anyone suggest tutorials which may help me?
BTW: I'm using GCC on a mac. (I think it's different in you can't create/import .dll's instead it's .lib).
Any suggestions would be greatly appriciated.