[filesystem] Using path in shared library fault (?)
Hello all, I am using filesystem::path is a shared library called 'common', to initialise a static var. static boost::filesystem::path p("/home/me"); However, this give a seg fault (Linux, gcc) when the shared library is loaded. I am guessing this is an issue with the filesytem library not being loaded in at the time of the loading of 'common' (when the static var is initialised) - hence the seg fault. Its only an issue with the static variable, as all other uses of path in the library work fine. Is there any way round this? James This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately.
participants (1)
-
Hughes, James