Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / problem in compling wxWindows in Dev-C++

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. problem in compling wxWindows in Dev-C++
#3084
Posted by: hi6_6 2003-12-15 02:42:29
Hi:

I am a beginner of dev-c++.

I installed Dev-C++ and wxWindows following the step in below homepage
http://www.wxwindows.org/devcpp.htm#devcpp5

i am using Platform XP Personal, DEV-C++ 4.9.8.5 and  DevPaks WxWindows-2.2.9

When i compile the sample, many errors occur. However, i don't know what's going wrong.

Can anyone tell what's wrong with me? I really need your help!

Error :

Compiler: Default compiler
Building Makefile: "C:Makefile.win"
Executing  make...
make.exe -f "C:Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward" 

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

In file included from C:/Dev-Cpp/include/wx/debug.h:17,
                 from C:/Dev-Cpp/include/wx/defs.h:468,
                 from C:/Dev-Cpp/include/wx/wx.h:15,
                 from main.cpp:5:
C:/Dev-Cpp/include/wx/wxchar.h:429:6: #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:20,
                 from C:/Dev-Cpp/include/wx/wx.h:16,
                 from main.cpp:5:
C:/Dev-Cpp/include/wx/string.h:170: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:20,
                 from C:/Dev-Cpp/include/wx/wx.h:16,
                 from main.cpp:5:
C:/Dev-Cpp/include/wx/string.h:419: `char wxString::operator[](unsigned int)
   const' and `char wxString::operator[](unsigned int) const' cannot be
   overloaded
C:/Dev-Cpp/include/wx/string.h:423: `char& wxString::operator[](unsigned int)'
   and `char& wxString::operator[](unsigned int)' cannot be overloaded

                        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

In file included from C:/Dev-Cpp/include/wx/wx.h:45,
                 from main.cpp:5:
C:/Dev-Cpp/include/wx/timer.h: At global scope:
C:/Dev-Cpp/include/wx/timer.h:133: parse error before `&' token
C:/Dev-Cpp/include/wx/timer.h:133: missing ';' before right brace
C:/Dev-Cpp/include/wx/timer.h:134: `wxTimer' was not declared in this scope
C:/Dev-Cpp/include/wx/timer.h:134: `timer' was not declared in this scope
C:/Dev-Cpp/include/wx/timer.h:134: parse error before `,' token
C:/Dev-Cpp/include/wx/timer.h:135: ISO C++ forbids defining types within return
   type
C:/Dev-Cpp/include/wx/timer.h:135: semicolon missing after declaration of `
   class wxTimerRunner'
C:/Dev-Cpp/include/wx/timer.h: In function `int wxTimerRunner(...)':
C:/Dev-Cpp/include/wx/timer.h:135: `timer' undeclared (first use this function)
C:/Dev-Cpp/include/wx/timer.h:136: only constructors take base initializers

C:/Dev-Cpp/include/wx/timer.h:136: confused by earlier errors, bailing out

make.exe: *** [main.o] Error 1

Execution terminated
            

Please help  me to solve this problem.
thank you!!
Message2. Re: problem in compling wxWindows in Dev-C++
#3085
Posted by: 2003-12-15 03:52:58
Try to check this page if you know french
http://etudiant.epita.fr/~nowick_c/

if not, go directly here to download the correct devpacks for wxwindows :)
http://michel.weinachter.free.fr/
Message3. Re: problem in compling wxWindows in Dev-C++
#3086
Posted by: hi6_6 2003-12-15 11:18:24
Thank for pwipwi's help
Now I can run compilng wxWindows in Dev-C++ successfully. =)

But I still want to ask a stupid question. Why does it not work with DevPaks WxWindows-2.2.9? I download it from Dev-C++ WebUpdate.
Message4. Re: problem in compling wxWindows in Dev-C++
#3087
Posted by: upCASE 2003-12-15 20:59:18
Hi!
Simple answer: The libs are not compatible.

Due to the change from Dev-C++ version 4.7 to the recent 4.8.9.5 the underlying compiler (Dev uses the mingw port of gcc) was updated from ver. 2.9.5 to 3.2.3. The wxWindows 2.2.9 devpack was compiled for 2.9.5 , but with gcc 3.x the ABI changed and this lib is incompatible now. wxWindows 2.4.2 is more stable and has a lot bugfixes, so better use this version.

You can check my page at http://upcase.malteser-gl.de for instruction on how to compile 2.4.2 with Dev-C++. I too have a precompiled devpack there.

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message5. Re: problem in compling wxWindows in Dev-C++
#3088
Posted by: upCASE 2003-12-15 21:06:07
Hi!
Oh, I forgot: The errors in your compile log come from missing defines in your project settings.

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0