Hi,
I would really like to see MS support for mysql++ if at all possible. I
have hacked 1.7.9 to compile with v6 (12.00.8804) but that took quite a
lot of changes.
I have just downloaded v7 (13.10.3077) and that looks more promising. I
have not compiled all of the examples yet.
One immediate thing is the exporting of symbols from a dll. Preferred
method is using __declspec(dllexport). atm i have used dumpbin on all
the objects to get decorated symbols, them generated a .def file with a
little perl.
How do you feel about a directive that could expand to
__declspec(dllexport) or __declspec(dllimport) as necessary?
e.g.
#ifdef _MSC_VER
#ifdef EXPORTING
#define MYSYMBOL_EXPORT __declspec(dllexport)
#else
#define MYSYMBOL_EXPORT __declspec(dllimport)
#endif // #ifdef EXPORTING
#endif // #ifdef _MSC_VER
...
class MYSYMBOL_EXPORT Connection
{
...
};
regards,
ahnkle