Skip to content

Question: why is there no __declspec(dllexport) or __declspec(dllimport) ? #127

Open
@sorinmustaca

Description

@sorinmustaca

I need to compile everything as a DLL in order to be used from multiple programs.
I have to define in SQLiteCPP.h
#ifdef SDK_EXPORTS
#define DLL_API __declspec(dllexport)
#pragma message("Exporting symbols")
#else
#define DLL_API __declspec(dllimport)
#pragma message("Importing symbols")
#endif

and then change every class to be exportable/importable:

class DLL_API ClassName.

Is there a reason why not preparing the code for being used in a DLL ?

If no, I am happy to provide a patch to use this (even if the change is more than trivial).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions