Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4557
Posted by: 2004-06-20 23:34:00
I done everything what you write in tutorial what describes procedure for installation.
I try to use wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1
I have lot of messages about LINKING and COMPILING, did i must do 'type' some 'extra' command or what?

Procedure:
1)Download and install Dev-cpp 4.9.8.0
2)Download GCC 3.3.1 from
   http://prdownloads.sf.net/mingw/gcc-core-3.3.1-20030804-1.tar.gz?download
   http://prdownloads.sf.net/mingw/gcc-g++-3.3.1-20030804-1.tar.gz?download
3)Copy the gcc compiler files to your dev-cpp directory.
4)Download and install the upCase's wxwidgets dev-cpp packs from
   http://www.upcase.de/stuff/wxWidgets251.DevPak
   http://www.upcase.de/stuff/wxWidgets251contrib.DevPak
5)Copy the devcpp.exe file from the zip file to your devcpp 4.9.8.0 install dir.
6)If you use English Lang, then delete the English.lng file from the
  Lang directory. Since the English lang file is not up to date for the curent
  devcpp,
  certain captions will not be displayed properly.
7)To re-generate the code-complete cache, close dev-cpp and delete the
  devcpp.ini file from
   C:\Documents and Settings\UserName\Local Settings\Application Data (in win2k and XP)
and start it again.
8)Copy the template project file from the Template dir in the zip file.
Message2. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4559
Posted by: upCASE 2004-06-20 23:55:52
Hi!
I don'te see anything wrong. Maybe it would be a good idea to specify what the problems are, now that we know what you did...
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4561
Posted by: 2004-06-21 01:58:32
Compile Log:
"------------------------------------------------------------------------------
Compiler: Default compiler
Executing  g++.exe...
g++.exe "C:\Dev-Cpp\Untitled1.cpp" -o "C:\Dev-Cpp\Untitled1.exe"    -I"c:\Dev-Cpp\include\c++"  -I"c:\Dev-Cpp\include\c++\mingw32"  -I"c:\Dev-Cpp\include\c++\backward"  -I"c:\Dev-Cpp\lib\gcc-lib\mingw32\3.2\include"  -I"c:\Dev-Cpp\include"  -I"C:\Dev-Cpp\wx"   -L"c:\Dev-Cpp\lib"
In file included from c:/Dev-Cpp/include/wx/wxprec.h:13,
                 from C:/Dev-Cpp/Untitled1.cpp:17:
c:/Dev-Cpp/include/wx/defs.h:179: error: 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 C:/Dev-Cpp/Untitled1.h:14,
                 from C:/Dev-Cpp/Untitled1.cpp:24:

c:/Dev-Cpp/include/wx/string.h:160:4: #error "Please define string case-insensitive compare for your OS/compiler"
In file included from C:/Dev-Cpp/Untitled1.cpp:24:
C:/Dev-Cpp/Untitled1.h:39: error: `wxCLOSE_BOX' was not declared in this scope

Execution terminated
"------------------------------------------------------------------------------



AND


"------------------------------------------------------------------------------
17 c:\Dev-Cpp\include\wx\wxprec.h:13,               from C:\Dev-Cpp\Untitled1.cpp
In file included from c:/Dev-Cpp/include/wx/wxprec.h:13,               from C:/Dev-Cpp/Untitled1.cpp

17 C:\Dev-Cpp\Untitled1.cpp
                 from C:/Dev-Cpp/Untitled1.cpp

179 c:\Dev-Cpp\include\wx\defs.h
redeclaration of C++ built-in type ` bool'

25 c:\Dev-Cpp\include\wx\memory.h:20,               from c:\Dev-Cpp\include\wx\object.h
In file included from c:/Dev-Cpp/include/wx/memory.h:20,               from c:/Dev-Cpp/include/wx/object.h

16 c:\Dev-Cpp\include\wx\object.h:25,               from c:\Dev-Cpp\include\wx\wx.h
                 from c:/Dev-Cpp/include/wx/object.h:25,               from c:/Dev-Cpp/include/wx/wx.h

14 c:\Dev-Cpp\include\wx\wx.h:16,               from C:\Dev-Cpp\Untitled1.h
                 from c:/Dev-Cpp/include/wx/wx.h:16,               from C:/Dev-Cpp/Untitled1.h

24 C:\Dev-Cpp\Untitled1.h:14,               from C:\Dev-Cpp\Untitled1.cpp
                 from C:/Dev-Cpp/Untitled1.h:14,               from C:/Dev-Cpp/Untitled1.cpp

24 C:\Dev-Cpp\Untitled1.cpp
                 from C:/Dev-Cpp/Untitled1.cpp

4 c:\Dev-Cpp\include\wx\string.h:160
#error "Please define string case-insensitive compare for your OS/compiler"

24 C:\Dev-Cpp\Untitled1.cpp
In file included from C:/Dev-Cpp/Untitled1.cpp

39 C:\Dev-Cpp\Untitled1.h
`wxCLOSE_BOX' was not declared in this scope
"------------------------------------------------------------------------------

WHAT TO D000oo
Message4. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4564
Posted by: upCASE 2004-06-21 14:52:36
Hi!
So, everything's ok with the lib and mingw setup...
But you left out the defines in your compiler options. At least add these
-D__WXMSW__ -D__GNUWIN32__ -D__WIN95__
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message5. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4570
Posted by: 2004-06-22 00:57:21
Hi,
i do not have:
   MinGW-3.1.0-1.exe
   gdb-5.2.1-1.exe
but i have:
   gcc-core-3.3.1-20030804-1.tar.gz
   gcc-g++-3.3.1-20030804-1.tar.gz
   (i just unpack that packages into devcpp directorium)
   (did i need to do something else?)

Did i need to download what i do not have?
Can you write me COMPILER and LINEKER parameters for wxWindow 5.2.1

AND, When i compile TEMPLATE everything is OK,
BUT  When i try do make 'New wxForm' everthing is bad, a lot of link errors
Message6. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4571
Posted by: upCASE 2004-06-22 14:46:02
Hi!
"AND, When i compile TEMPLATE everything is OK,"
So it compiles and runs afterwards?? Then everything is there and installed correctly...

"BUT  When i try do make 'New wxForm' everthing is bad, a lot of link errors"
Can't comment on that, because I don't use wxDev. Try wxGlade instead if you need a GUI editor.

"Can you write me COMPILER and LINEKER parameters for wxWindow 5.2.1"
Nope, unless I visit the future to get an impression of what 5.2.1 is going to be :P
But for 2.5.1: If the template compiles simply open a new template project, go to your projects options and the compiler & linker settings should be there. That's the sense of having templates.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message7. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4576
Posted by: 2004-06-22 18:34:07
Hi, thank you, i learn more and do that:
   1) download DevCpp 4.9.8.10
   2) reneme MinGW 3.3.1 path in Compile Options
   3) template work but 'New wxForm' do not work
BUT i have ONE more problem

MESSAGES:

[Linker error] undefined reference to `WinMain@16'

AND Compile Log:

"Compiler: Default compiler
Executing  g++.exe...
g++.exe "C:\Dev-Cpp\test\test2\Untitled4.cpp" -o "C:\Dev-Cpp\test\test2\Untitled4.exe"    -I"c:\Dev-Cpp\include\c++"  -I"c:\Dev-Cpp\include\c++\mingw32"  -I"c:\Dev-Cpp\include\c++\backward"  -I"c:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include"  -I"c:\Dev-Cpp\include"   -L"c:\Dev-Cpp\lib" -lwxmsw25 -lwxmsw25_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32
c:\Dev-Cpp\lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined reference to `WinMain@16'

Execution terminated"

Current complie parametars:
"-fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall  -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__"

Current linker parametars:
"-lwxmsw25 -lwxmsw25_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32"

Tools/COMPILE OPTIONS/Directories:
BINARIES:
   c:\Dev-Cpp\Bin
   C:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1
LIBRARIES:
   c:\Dev-Cpp\lib
C INCLUDE:
   c:\Dev-Cpp\include
C++ INCLUDE:
   c:\Dev-Cpp\include\c++
   c:\Dev-Cpp\include\c++\mingw32
   c:\Dev-Cpp\include\c++\backward
   c:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include
   c:\Dev-Cpp\include

Where is error?

Message8. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4577
Posted by: upCASE 2004-06-22 19:06:25
Hi!
Have you checked if your project type is windows GUI?
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message9. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4584
Posted by: 2004-06-23 05:27:41
Yes it is!
Message10. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4588
Posted by: 2004-06-23 16:15:12
I do not want to give off. I want to learn where, when and what to do. upCASE you are genius, and thank you.

How to start project,what to do, when to use wxForm?
I use Win XP, and DevCpp 4.9.8.10
Message11. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4652
Posted by: 2004-06-27 17:58:10
I done somethink, but i can not use wxForm yet. Help!
Message12. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4653
Posted by: upCASE 2004-06-27 20:34:39
Hi!
Just had a quick look at wxForm and it seems to be a nice try to make Dev-C++ more like an integrated development editor for GUI building... Reminds me of Visual Studio. Still, bit buggy :)
Anyway: If you're able to compile wxWidgets programs without errors, it should work. Create a new wxWidgets project using the template, create a wxForm and let it be added to the project. Then, manually add the generated files (.h/.cpp/.wxform) to the project since, at least for me, they weren't added automatically. Create the dialog and include the header file for the dialog in you main cpp file. Call your dialog from the main app when needed (for creating MFC-like dialog only apps read http://www.wxwidgets.org/technote/dlgbased.htm). Compile, be happy :)
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message13. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4750
Posted by: 2004-07-08 00:15:39
IT'S WORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRK !!!!
upCASE you are genius !!!
thank you !!!!!!!!!!!!!!!
Message14. Re: wxWindow 5.2.1 and Dev-C++ 4.9.8.0 and MinGW 3.3.1 - JUST PROBLEMS
#4751
Posted by: upCASE 2004-07-08 00:25:52
Glad to hear that (working, not that genius stuff) :-)
I'm honored and blushing...
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-12-13  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0