CW is actually complaining about the next thing it seems -- in your source,
after you include "libmy.h", do you then include one of the PalmOS headers?
If so, this header may try to include the system precompiled header to
improve compilation speed, and when this happens, you get an error since
you've already added declarations to the program's space.  Change the order
of includes to put the Palm ones first, or better, upgrade to the 3.5 SDK
which handled precompiled headers much better, as far as I can tell.

"Nicolas FRAYER" <[EMAIL PROTECTED]> wrote in message
news:21309@palm-dev-forum...
>
> hello,
> I work under CW and when I try to compile my code source , it says :
> "Error   : illegal use of precompiled header
> libmy.c line 22   int getnbr(const char* str);"
> I really don't understand why ???
> my header file looks like this :
> #ifndef __LIBMY_H__
> #define __LIBMY_H__
>
> void pmsg( const char* );
> void perr( const char* , int );
> void pbuffer( const char* , int );
> void pmsgat( const char* , int );
> void pnbr( const char* , unsigned long );
>
> char* strndup( const char* , int );
> void strnlsl( char* , int );
> int strncmp( const char* , const char* , int );
>
> int getnbr( const char* );
>
> #endif /* __LIBMY_H__ */




-- 
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