bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation under win32 broken


From: Elizabeth Barham
Subject: Re: Compilation under win32 broken
Date: 28 Apr 2003 20:56:00 -0500

Hi W.J., all,

Do the technique displayed on this web-page

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q168/9/58.ASP&NoWebContent=1

make a difference?


> A kludge like
> 
> class CCXX_CLASS_EXPORT ost::SHADigest<unsigned __int64,64>;
> 
> Does not solve it.

That webpage mentions doing something like this for STL instantiations:

    #ifdef EXP_STL
    #    define DECLSPECIFIER __declspec(dllexport)
    #    define EXPIMP_TEMPLATE
    #else
    #    define DECLSPECIFIER __declspec(dllimport)
    #    define EXPIMP_TEMPLATE extern
    #endif

    // Instantiate classes vector<int> and vector<char>
    // This does not create an object. It only forces the generation of all
    // of the members of classes vector<int> and vector<char>. It exports
    // them from the DLL and imports them into the .exe file.
    EXPIMP_TEMPLATE template class DECLSPECIFIER std::vector<int>;
    EXPIMP_TEMPLATE template class DECLSPECIFIER std::vector<char>;

Elizabeth




reply via email to

[Prev in Thread] Current Thread [Next in Thread]