In the rcp file I have a #include myfile.h
The myfile.h contains #define. The IDs for resource
and the .c are defined in this file.
For eg.
#define myform1 1000
#define label1form1 1100
....
All works fine upto here.
The compilation problem occurs when I include a macro
#define mystr1 "New Stirng"
I get the compilation error at the above line where
this string macro is defined.
The error message says
"Constant expected, got New String"
My conclusion from this is that it is a constraint in
pilrc compiler. It doesnt allow string macros to be
included, is this right? But is there a workaround,
besides generating everything dynamically.
You can simulate the same problem by just including a
the macro mystr1 in your include file referenced by
your .rcp file.
CORRECTION I am using Pilrc v2.4
Thanks,
Mayank.
--- Thomee Wright <[EMAIL PROTECTED]> wrote:
> Hard to say what your problem is without the
> relevant bits of the .rcp
> file. What's the line that's giving you errors?
>
> -Thomee Wright-
>
> Mayank Pradhan wrote:
> >
> > Hi,
> >
> > I have a problem while compiling my rcp file.
> > Following is the scenario
> >
> > I have a regular .rcp file which includes a .h
> file
> > for resource IDs. This file is also used by my .C
> for
> > the same. I wish to include a string constant as
> well
> > which can be used as a title for a form. So I do a
> > #define MYSTR1 "This is my string" in the .h
> file.
> >
> > Now the pilrc wouldnt compile my rcp file.
> Following
> > is the error that it gives
> > Constant expected, got This is my string
> >
> > Does this mean I cannot have a string macro in the
> > header file that I use with .rcp.
> >
> > If so please let me know if there is any
> workaround.
> >
> > PS: I am using pilrc v2.8
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/