Dll '.APP ' has initialised data

Login to reply to this topic.
Fri, 2006-02-24 15:25
Joined: 2006-02-21
Forum posts: 14
I got this problem when I compile a program. I read the .APP.MAP file. On the data segment  (.data). They show this
0x1004d000        0x8   /UREL/DEF.o
0x1004d008       0xe0  /UREL/ABC.o
without showing the variable that is initalized globally

also, for the second one, I even didn't have a global veriable for abc.c file

so how can i find that out? where is the global variable?

Fri, 2006-02-24 16:49
Joined: 2004-06-08
Forum posts: 148
Re: Dll '.APP ' has initialised data
What about static variables? Do you have any?
Fri, 2006-02-24 18:35
Joined: 2006-02-21
Forum posts: 14
Re: Dll '.APP ' has initialised data
I got 'static const' for variable and 'static' for function. I also use 'static' inside function.
Fri, 2006-02-24 18:58
Joined: 2006-02-06
Forum posts: 28
Re: Dll '.APP ' has initialised data
change that static keywords to 'const'. Or where you have 'static const' just remove the 'static' part.

Think that will work.

ViruDoshi
Fri, 2006-02-24 23:24
Joined: 2005-11-28
Forum posts: 101
Re: Dll '.APP ' has initialised data
i dont think const global variable will work.. just try #define for const
Sat, 2006-02-25 00:43
Joined: 2004-07-10
Forum posts: 364
Re: Dll '.APP ' has initialised data
The full story is, on pre v9.x devices:

- writable static data is not allowed in DLLs but is allowed in EXEs.
- non writable static data is allowed in both.

After 9.x
writable static data is allowed but strongly discouraged from being used.



  • Login to reply to this topic.