Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Global Variables

1 replies · 2,807 views · Started 28 June 2004

Could successfully generate a static library having global variables. A executable(.exe) uses this static library. Was able to generate the exe for Thumb.

Are global variables allowed in static library(.lib) in symbian?

Are global variables allowed in exe in symbian?

What if this static library is used by a DLL, would it compile succesfully ?

Can we use Thread Local Storage and DLL class functions(SetTls(), Tls()) in static library?

Thanks in advance for all the help.

Hi , As far as my understanding .lib files are used for linking the symbols and where function is located in DLL . So at run time application will use DLL to execute particular functions . Anyhow Symbian won't support static global data's in DLL and you should use thread storage stuff like settls() functions .