[
https://issues.apache.org/jira/browse/XERCESC-1669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Bertoni resolved XERCESC-1669.
------------------------------------
Resolution: Invalid
Please do not create Jira issues to ask questions. Instead, please join the
mailing list and post there:
http://xml.apache.org/mail.html#xerces-c-user
> static member xercesc_2_3::XMLUni::fgXercescDefaultLocale must be defined in
> the program
> ----------------------------------------------------------------------------------------
>
> Key: XERCESC-1669
> URL: https://issues.apache.org/jira/browse/XERCESC-1669
> Project: Xerces-C++
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.3.0
> Environment: Sun Solaris 5.8 and compiler is CC: Sun WorkShop 6
> update 2 C++ 5.3 Patch 111685-03 2001/10/19
> Reporter: Sachin Khairnar
>
> Hi
> I am getting a Linker error while compiling my piece of code with Xerces
> library.
> [Hint: static member xercesc_2_3::XMLUni::fgXercescDefaultLocale must be
> defined in the program]
> I have got this error before while implementing Singleton pattern when a
> static data member is defined in the class header. So this is not specific to
> Xerces but issue with the compiler. The workaround which I noticed in the
> already available code seems to be to avoid a static data member in the class
> header file and define it within the static method that creates the singleton
> object in the implementation (cpp) file. Well surely not a ideal thing to do
> but still a possible workaround being used in many places.
> When you get this with Xerces, surely the above workaround is ruled out.
> Have anyone addressed this before? Is there any compiler option that needs to
> be set or anything else that I am missing. Your kind help in this will be
> deeply appreciated.
> Thanks in advance
> Sachin
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]