2
2b|!2b==?
I have a C++ library partitioned by namespaces. I want to export some of
the functions in one of the namespace - how do I do it.
Assuming I have the macro MYAPI_EXPORTS #defined to be a declspec import
or export (as appropriate ...
This is what the lib looks like:
MyNamespace
{
//To be exposed
void Foo();
const std::vector<std::string>& Foobar(const std::string);
....
//Not to be exposed
int MyPrivateBit();
void YetAnotherPrivateBit();
....
};
where do I insert my macro MYAPI_EXPORT above, so I can export the
functions I want from the DLL ?
the functions in one of the namespace - how do I do it.
Assuming I have the macro MYAPI_EXPORTS #defined to be a declspec import
or export (as appropriate ...
This is what the lib looks like:
MyNamespace
{
//To be exposed
void Foo();
const std::vector<std::string>& Foobar(const std::string);
....
//Not to be exposed
int MyPrivateBit();
void YetAnotherPrivateBit();
....
};
where do I insert my macro MYAPI_EXPORT above, so I can export the
functions I want from the DLL ?