delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/22/13:53:38

From: BYJ02057 AT nifty DOT ne DOT jp (Tomohiko Abe)
Subject: Re:Jan Jaap's Mingw32
22 Mar 1998 13:53:38 -0800 :
Message-ID: <199803200018.JAA14346.cygnus.gnu-win32@forum.mix.or.jp>
To: gnu-win32 AT cygnus DOT com

    At least, I can tell you the answer for the last question, while
 I'm not sure about the rest.

>C:\PROGRAM\V\SRCWIN>make
>g++ -O3 -c -I../includew -D_WIN32 VAPP.cpp -o VAPP.o
>VAPP.cpp: In function `int CMain(void *, void *, char *, int)':
>VAPP.cpp:1032: warning: implicit declaration of function `int strtok(...)'
>VAPP.cpp:1032: warning: assignment to `char *' from `int' lacks a cast
>VAPP.cpp:1036: warning: implicit declaration of function `int strchr(...)'
>VAPP.cpp:1036: ANSI C++ forbids comparison between pointer and integer
>VAPP.cpp:1038: warning: assignment to `char *' from `int' lacks a cast
>D:\MINGW32\BIN\MAKE.EXE: *** [VAPP.o] Error 1

    This happens because Mingw32 g++ tries to include
\mingw32\include\g++\String.h instead of \mingw32\include\string.h.
So, this problem can be avoided by renaming g++\String.h to another
filename such as cstring.h or whatever.
 
wishing this help you.

BYJ02057 AT nifty DOT ne DOT jp
Tomohiko Abe

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019