Hello!

I am trying to port a C++ program from CW6 to GCC (prc-tools 2.0). In
this program I have a file Customization.h, which contains many
definitions like this:
extern const UInt32 appCreator;
extern const Int16  appVersionNum;

I also have a corresponding file Customization.cpp, which contains
statements like that:
const UInt32 appCreator        = 'Razr';
const Int16  appVersionNum     = 0x01;

I include the Customization.h into many of my source files, and link
Customization.o to my project.

Unfortunately, whenever one of my source files accesses one of these
constants from Customization.h, it crashes, because of an access to
unallocated memory (according to POSE 3.1). The only indication I have
for the cause of the problem is the output from build-prc which says:
SimpleDemo: warning: global data ignored

I have run m68k-palmos-nm on the SimpleDemo file (which is the result of
my linker run), and it shows entries for all the constants from
Customization.o:
0000466a T appCreator
0000466e T appVersionNum

What might be causing this behavior? What does the warning mean?

All help will be appreciated,
Tilo Christ




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to