License Error with C++ Runtime Static Linkage

When building C++ statically, you must call the LtXmlLib8::Register(...) code directly.

When using dynamic linkage, the code within CEnumerations::CAppLifetime::RegisterLibrary() is automatically called through the use of the static variable static Schema::CAppLifetime s_oDuumy.

However, with static linkage this is never called. You can fix this by calling the Register code directly at the start of your client application:

LtXmlLib8::Register(...);

Note: You should copy the Register line from CEnumerations::CAppLifetime::RegisterLibrary() method.

Add Feedback