Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Dev-C++ wxTemplate Compile Problems

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Dev-C++ wxTemplate Compile Problems
#4472
Posted by: DarkWhoppy 2004-06-16 11:57:06
Well, I decided to give wxWindows a go ;-). And well... I went by the acticle on Dev-C++. Downloaded the image library and wxWindows DevPaks. I created a new project and saved it in a directory. Compiled... and....

5 C:\Dev-Cpp\include\wx\wx.h:15,               from main.cpp
In file included from C:/Dev-Cpp/include/wx/wx.h:15,               from main.cpp
320 C:\Dev-Cpp\include\wx\defs.h
redeclaration of C++ built-in type `bool'
468 C:\Dev-Cpp\include\wx\debug.h:17,               from C:\Dev-Cpp\include\wx\defs.h
In file included from C:/Dev-Cpp/include/wx/debug.h:17,               from C:/Dev-Cpp/include/wx/defs.h
6 C:\Dev-Cpp\include\wx\wxchar.h:429
#error "Please define string case-insensitive compare for your OS/compiler"
20 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


And about 300 more... any ideas?
Message2. Re: Dev-C++ wxTemplate Compile Problems
#4473
Posted by: DarkWhoppy 2004-06-16 13:16:12
I fixed all of those errors... now I get a resource error. "No resource" (this is compileing the base.h and base.cpp examples)

 C:\Documents and Settings\Desktop\Test\Makefile.win
[Build Error]  [Test_private.res] Error 1
Message3. Re: Dev-C++ wxTemplate Compile Problems
#4474
Posted by: DarkWhoppy 2004-06-16 14:41:35
BTW, i'm using Windows XP...
Message4. Re: Dev-C++ wxTemplate Compile Problems
#4476
Posted by: DarkWhoppy 2004-06-16 14:50:37
I tried again, this time I get this....


frame.cpp C:\Dev-Cpp\lib\libwxmsw25.a(monolib_frame.o)(.rdata$_ZTV7wxFrame+0x0)
multiple definition of `vtable for wxFrame'
/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV7wxFrame+0x0):C
first defined here

menu.cpp C:\Dev-Cpp\lib\libwxmsw25.a(monolib_menu.o)(.rdata$_ZTV14wxMenuItemList+0x0)
multiple definition of `vtable for wxMenuItemList'
/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV14wxMenuItemList+0x0):C
first defined here

menu.cpp C:\Dev-Cpp\lib\libwxmsw25.a(monolib_menu.o)(.rdata$_ZTV6wxMenu+0x0)
multiple definition of `vtable for wxMenu'
/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV6wxMenu+0x0):C
first defined here

object.cpp C:\Dev-Cpp\lib\libwxmsw25.a(monolib_object.o)(.rdata$_ZTV8wxObject+0x0)
multiple definition of `vtable for wxObject'
/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV8wxObject+0x0):C
first defined here

menucmn.cpp C:\Dev-Cpp\lib\libwxmsw25.a(monolib_menucmn.o)(.rdata$_ZTV10wxMenuBase+0x0)
multiple definition of `vtable for wxMenuBase'
/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV10wxMenuBase+0x0):C
first defined here

menucmn.cpp C:\Dev-Cpp\lib\libwxmsw25.a(monolib_menucmn.o)(.rdata$_ZTV20wxwxMenuItemListNode+0x0)
multiple definition of `vtable for wxwxMenuItemListNode'
/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV20wxwxMenuItemListNode+0x0):C
first defined here

/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV20wxwxMenuItemListNode+0x0):C
first defined here
/Dev-Cpp/include/wx/menu.h C:\Documents and Settings\Whoppy\Desktop\Test\base.o(.data$_ZTV10wxListBase+0x0):C
first defined here

 C:\Documents and Settings\Whoppy\Desktop\Test\Makefile.win
[Build Error]  [Project1.exe] Error 1

Message5. Re: Dev-C++ wxTemplate Compile Problems
#4479
Posted by: upCASE 2004-06-16 15:07:36
Hi!
If you allready compiled the object files, compile a newer wxWidgets lib after that and are now trying to link the whole thing -> recompile all object files. I'm not sure why, but sometimes when you use a newer lib, you get these errors with allready compiled object files.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message6. Re: Dev-C++ wxTemplate Compile Problems
#4480
Posted by: DarkWhoppy 2004-06-16 15:13:28
I tried again, creating a new project using the template. Same errors as in my latest error post... :-(
Message7. Re: Dev-C++ wxTemplate Compile Problems
#4484
Posted by: styggentorsken 2004-06-16 18:28:06
multiple definition of `vtable for wxFrame'
hmm...    this error has been discussed before on this forum
check   the topics:  "new devpacks out"
                     "GLCanvas"
                           
Message8. Re: Dev-C++ wxTemplate Compile Problems
#4533
Posted by: DarkWhoppy 2004-06-18 19:12:59
Downloading the other MinGW files worked. Thanks.
Message9. Re: Dev-C++ wxTemplate Compile Problems
#4554
Posted by: 2004-06-20 23:08:40
Hi,
I have the same problem with wxWindows !!!
How did you solve it ???
I can't get it to work...  :(

thx, Acki
Message10. Re: Dev-C++ wxTemplate Compile Problems
#4729
Posted by: 2004-07-06 21:06:59
i want to study the source code of VC++ library function (classes) e.g class CDC
Message11. Re: Dev-C++ wxTemplate Compile Problems
#4730
Posted by: upCASE 2004-07-06 21:21:28
Hi!
That's a very cool idea, because you'll learn a lot from it. So install MFC with all sources and be happy.
What the h*** does wxWidgets hav to do with that?? And why don't you post to a NEW thread?? Is there some connection between your wish to learn and this topic??

BTW: What exactly DO you want??
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 • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2022-8-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0