1
Unresolved Externals building static libs with LTXMLLIB_STATIC
Problem reported by Rita Shahani - 5/7/2020 at 12:40 PM
Resolved
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
0
Liquid Support Replied
Employee Post Marked As Resolution
Hi,
 
The C++ generated code already has Static Build configurations, please see knowledge base article:
https://support.liquid-technologies.com/kb/a44/c-static-builds-on-windows.aspx
 
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.
 
0
Rita Shahani Replied
Thanks

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