Hi,
It seems that stricmp is not available for winelib applications. Is this an intentional ommision, or just a missing implementation?
Shachar
On December 30, 2002 02:53 pm, Shachar Shemesh wrote:
It seems that stricmp is not available for winelib applications. Is this an intentional ommision, or just a missing implementation?
It is if you link it against msvcrt: include/msvcrt/string.h:#define stricmp _stricmp
If you use winegcc to compile your winelib app, just add -mno-cygwin to the command line, and that will cause it to use msvcrt instead of the native libc.
Assuming this is a winelib app that is compiled within the wine source tree, what do I need to do (both makefile and include wise) to make it compile?
I tried adding msvcrt to "IMPORTS", but if I try to include "msvcrt/string.h", I get tons of conflicts with other includes over WCHAR and such.
Help?
SH.
Dimitrie O. Paun wrote:
On December 30, 2002 02:53 pm, Shachar Shemesh wrote:
It seems that stricmp is not available for winelib applications. Is this an intentional ommision, or just a missing implementation?
It is if you link it against msvcrt: include/msvcrt/string.h:#define stricmp _stricmp
If you use winegcc to compile your winelib app, just add -mno-cygwin to the command line, and that will cause it to use msvcrt instead of the native libc.
On January 1, 2003 11:46 am, Shachar Shemesh wrote:
I tried adding msvcrt to "IMPORTS", but if I try to include "msvcrt/string.h", I get tons of conflicts with other includes over WCHAR and such.
If you _really_ want to link with msvcrt (why?), you should add
IMPORTS = msvcrt EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
to the Makefile.in, and simply
#include <string.h>
in the .c file.
On Wed, 1 Jan 2003, Shachar Shemesh wrote:
Assuming this is a winelib app that is compiled within the wine source tree, what do I need to do (both makefile and include wise) to make it compile?
I think it would be best not to link with msvcrt. You could use lstrcmpiA as a replacement (exported by kernel32 and defined in winbase.h).