
got 'strrchr' undefined even I include stdlib.h
I find strchr defined in string.h (but I'm still using the CE tools for VC
5). I don't think I've ever linked it, so I'm not sure which library
contains it.
Are you sure you want strchr, rather than wcschr (or _tcschr)?
--
-----------------------------------------
To reply to me, remove the underscores (_) from my email address.
Robert E. Zaret
PenFact, Inc.
46 Beach Street
Boston, MA 02111
www.penfact.com
Quote:
>I'm developing wince3.0 program by EVC.
>In my hpc2000 sdk, the strrchr function is defined
>in stdlib.h as:
>_CRTIMP char * __cdecl strrchr(const char *, int);
>however, even I include <stdlib.h> in my program,
>the compiler still say:
>'strrchr' undefined; assuming extern returning int
>Even I declare the prototype explicitely, I still
>got error while linking program.
>Why?