From: Paul O'S. <osh...@gm...> - 2012-05-20 21:46:14
|
Hi, In that case, perhaps you could build your own lightweight library that links to ICU and then dynamically load your dll when the user chooses the conversion option in your application. That way, you can get the benefits of linking to ICU (no version headaches) while avoiding the side effect of loading the ICU libraries at startup. Paul. On 20 May 2012 11:50, machhindra nale <mac...@gm...> wrote: > Thanks for reply! > > I am using ICU for conversion. This conversion is optional and depends > upon user's choice. If I link ICU (using import lib) directly, the shared > library will get loaded at start up. > > On Sun, May 20, 2012 at 2:15 AM, Steven R. Loomis <sr...@ic...>wrote: > >> Mac, >> First, what is the reason for trying to "load ICU dynamically" rather >> than just linking against it? >> >> Second, you can disable symbol renaming, see >> http://userguide.icu-project.org/design#TOC-ICU-Binary-Compatibility:-Using-ICU-as-an-Operating-System-Level-Library >> >> then, ICU will always have "u_getVersion". But again, just link your >> code against ICU this way, then if you want a different ICU version you can >> drop in a different shared library. >> >> Hope this helps, >> -s >> >> >> On 05/18/2012 10:56 PM, machhindra nale wrote: >> >> Hello, >> >> I am using ICU for conversion. I want to load the ICU common library >> and Data library dynamically on Windows/Linux platform. Libraries are >> loading fine. BUT I am struggling to find the correct symbol name. >> >> Following line works fine. >> >> GetProcAddress(myHandle , "u_getVersion_49"); or >> >> myu_getVersion = dlsym(myHandle,"u_getVersion_49"); >> >> I don't want to restrict end users to "xxx_49" version of ICU. I should >> be able to change the library version seamlessly. I understand that 'symbol >> renaming' in ICU can be disabled explicitly. Is there any better way to >> handle this programmatically instead of compiling ICU on different >> platforms without symbol renaming? >> >> Thanks, >> Mac >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> icu-support mailing list - icu...@li... >> To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support >> Archives/Project<https://lists.sourceforge.net/lists/listinfo/icu-supportArchives/Project>Info: >> http://site.icu-project.org/contacts >> >> > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > icu-support mailing list - icu...@li... > To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support > Archives/Project Info: http://site.icu-project.org/contacts > > |