Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / #error  "Please define string case-insensitive compare for your OS/compiler"

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. #error  "Please define string case-insensitive compare for your OS/compiler"
#3277
Posted by: olli666 2004-01-29 18:26:11
Hi All,

I compiled this programm: http://www.wxwindows.org/hello.htm, http://www.wxwindows.org/hworld.txt and get this error:
Compiler: Default compiler
Building Makefile: "D:my_wxwx_1Makefile.win"
Executing  make...
mingw32-make.exe -f "D:my_wxwx_1Makefile.win" all
g++.exe -c wx_1.cpp -o wx_1.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  -I"C:/msys/1.0/local/include/wx/msw"  -I"C:/wx242/include" -D__WXDEBUG__ -D__WXMSW__ -g -O0 -mthreads -Wall 

In file included from C:/Dev-Cpp/include/wx/wx.h:15,
                 from wx_1.cpp:6:
C:/Dev-Cpp/include/wx/defs.h:174: redeclaration of C++ built-in type `bool'

In file included from C:/Dev-Cpp/include/wx/memory.h:20,
                 from C:/Dev-Cpp/include/wx/object.h:25,
                 from C:/Dev-Cpp/include/wx/wx.h:16,
                 from wx_1.cpp:6:
C:/Dev-Cpp/include/wx/string.h:164:4: #error "Please define string case-insensitive compare for your OS/compiler"

In file included from C:/Dev-Cpp/include/wx/memory.h:20,
                 from C:/Dev-Cpp/include/wx/object.h:25,
                 from C:/Dev-Cpp/include/wx/wx.h:16,
                 from wx_1.cpp:6:
C:/Dev-Cpp/include/wx/string.h: In function `int Stricmp(const char*, const
   char*)':
C:/Dev-Cpp/include/wx/string.h:166: warning: no return statement in function
   returning non-void

mingw32-make.exe: *** [wx_1.o] Error 1

Execution terminated

I use Dev-Cpp 4.8.5 and wxwindows 2.4.2. I build my own Lib with this tutorial http://wiki.wxwindows.org/wiki.pl?Dev-CPP_Setup_Guide (MSYS + wxwindows-sources) on a Windows2000 - Box (SP3)

Could anybody help me, please?

Regards Olli

Message2. Re: #error  "Please define string case-insensitive compare for your OS/compiler"
#3278
Posted by: upCASE 2004-01-29 19:43:14
Hi!
I guess you refer to my tutorial and from what I see you're simply missing two defines in your compiler settings.
Go to "Project Options" -> "Parameters" and add these to "C++ Compiler"
-fno-rtti
-fno-exceptions
-fno-pcc-struct-return
-fstrict-aliasing
-Wall
-D__WXMSW__
-D__GNUWIN32__
-D__WIN95__

Note that -D__GNUWIN32__ is neccessary for the build in types like bool to work. Otherwise it will get redefined and leads to an error.

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: #error  "Please define string case-insensitive compare for your OS/compiler"
#3279
Posted by: olli666 2004-01-29 22:01:05
Hi upCASE,

I changed my compile options as recommended and now I have a wx_1.o in my build directory but building the app still fails:

Compiler: Default compiler
Building Makefile: "D:my_wxwx_1Makefile.win"
Executing  make clean
rm -f wx_1.o  wx_1.exe

g++.exe -c wx_1.cpp -o wx_1.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  -I"C:/msys/1.0/local/include/wx/msw"  -I"C:/wx242/include" -D__WXDEBUG__ -D__GNUWIN32__ -D__WXMSW__  -D__WIN95__ -g -O0 -mthreads -Wall -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing 

g++.exe wx_1.o  -o "wx_1.exe" -L"C:/Dev-Cpp/lib" -L"C:/msys/1.0/local/lib/" -libwxmsw242d -mthreads -Wl --subsystem windows -mwindows -lwxjpegd -lwxpngd -lwxzlibd -mthreads -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -ltiff

g++.exe: windows: No such file or directory

mingw32-make.exe: *** [wx_1.exe] Error 1

Execution terminated


I don't understand why there is no .exe ... should be a minimal step and Dev-Cpp should compile the stuff?

Regards Olli
Message4. Auto email notification failed
#3281
Posted by: guidance 2004-01-30 10:25:09
The attached message has failed delivery. The following error report or reports
were given to explain the problem:

   *** oliver-andre.brandt _@_ freenet.de
   550 E-Mail blocked, see http://spam.freenet.de
Message5. Re: #error  "Please define string case-insensitive compare for your OS/compiler"
#3282
Posted by: upCASE 2004-01-30 14:44:08
Hi!
I guess this error
g++.exe: windows: No such file or directory
comes from this line
--subsystem windows
It should have been  --subsystem=windows. You don't need to enter this yourself, Dev-C++ handles it if it's a GUI project type.

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message6. Re: #error  "Please define string case-insensitive compare for your OS/compiler"
#3286
Posted by: olli666 2004-01-30 23:11:43
Hi upCase,

>I guess this error
>g++.exe: windows: No such file or directory
>comes from this line
>--subsystem windows

This wasn?t the mistake I made ... I don?t know why but I have to change -lwxmsw242d into C:msys1.0locallib-lwxmsw242d in my linker option in Dev-C++ :-)

Now, I got a HelloWorld.exe http://www.wxwindows.org/hworld.txt which has a size of 21 MB :-) because I linked my programm against a debug version (my own lwxmsw242d.a) So my programm should work but the following happens:

Fatal Error
Mismatch between the programm and library build versions detected.
The library used 2.4 (debug) and your programm used 2.4(no debug)

Help would be very appreciated :-)

Regards Olli
Message7. Re: #error  "Please define string case-insensitive compare for your OS/compiler"
#3487
Posted by: Diarmuid 2004-03-10 02:07:04
Dear Olli

I am writing in reply to your query about the following fatal error:

>Mismatch between the programm and library build versions detected.
>The library used 2.4 (debug) and your programm used 2.4(no debug).

I had exactly the same problem.

Fortunately, by going into 'Project Options' in Dev-C++ 4.9.8 and changing the project type to Win32 Gui - as opposed to Win32 Console - the problem disappeared.

Diarmuid

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-12-11  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0