Unresolved Externals building static libs with LTXMLLIB_STATIC
Problem reported by Rita Shahani - 5/7/2020 at 12:40 PM
Good morning,
Adding the LTXMLLIB_STATIC Preprocessor Definition to my Visual Studio 2015 project produces the following unsolved externals:

    private: static class LtxmlLib17::CSerializationContext LtXmlLib17::CSerializationContext::m_defaultContext
    protected: static class CLTCriticalSection LtXmlLib17::CXmlGeneratedClass::m_csInit

Any hints?

2 Replies

Reply to Thread
Liquid Support Replied
Employee Post Marked As Resolution
The C++ generated code already has Static Build configurations, please see knowledge base article:
This allows you to statically link your generated lib into your application.
However, we do not provide static runtime libraries, so the only way you can avoid distributing the Liquid Runtime DLL is by purchasing the C++ Source Code and building it yourself with /MT.
Rita Shahani Replied

You said "...the only way you can avoid distributing the Liquid Runtime DLL..."

that's exactly what I was trying to do.

Reply to Thread