You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In header.h, globals variables are called the following way: extern const char *CJOSE_HDR_ALG;
In Visual C++, there's no way to have that declaration included in a third-party application, even by providing a DEF file. All exported variables have to be declared with extern __declspec(dllimport).
In case __cplusplus is defined, we have twice "extern", which poses a problem with some compilers.
The second "extern", on each "const ..." line should be enclosed in "#ifndef __cplusplus". This way it's compatible with all cases.
Btw, Visual C++ handles thisa automatically without having to declare __declspec(dllexport)/__declspec(dllimport)
In header.h, globals variables are called the following way:
extern const char *CJOSE_HDR_ALG;
In Visual C++, there's no way to have that declaration included in a third-party application, even by providing a DEF file. All exported variables have to be declared with
extern __declspec(dllimport)
.Proposal, compatible with Visual C++ and others:
The text was updated successfully, but these errors were encountered: