Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / trouble compiling demo with devpaks

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. trouble compiling demo with devpaks
#5973
Posted by: 2005-03-15 06:32:25
Ok, so I have dev c++ 4.9.8.0 and have imagelib and wxWidgets 2.4.2 dev paks from this site: http://michel.weinachter.free.fr/

I installed each dev pak and tried the initial demo that is available when starting a new wxWidgets project. I compiled it and this is what I got in my Compile Log:

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\JAMIE BERNIER\Desktop\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\JAMIE BERNIER\Desktop\Makefile.win" all
g++.exe -c main.cpp -o main.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" -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DHAVE_W32API_H  -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -Os -fno-rtti -fno-exceptions 

windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff

g++.exe main.o Project1_private.res -o "Project1.exe" -L"C:/Dev-Cpp/lib" -mwindows -Wl,--subsystem,windows -mwindows -lwxmsw -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid  

C:/Dev-Cpp/lib/libwxmsw.a(frame.o)(.rdata$_ZTV7wxFrame+0x0):frame.cpp: multiple definition of `vtable for wxFrame'
main.o(.data$_ZTV7wxFrame+0x0):main.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw.a(object.o)(.rdata$_ZTV15wxObjectRefData+0x0):object.cpp: multiple definition of `vtable for wxObjectRefData'
main.o(.data$_ZTV15wxObjectRefData+0x0):main.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw.a(menu.o)(.rdata$_ZTV14wxMenuItemList+0x0):menu.cpp: multiple definition of `vtable for wxMenuItemList'
main.o(.data$_ZTV14wxMenuItemList+0x0):main.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw.a(menu.o)(.rdata$_ZTV6wxMenu+0x0):menu.cpp: multiple definition of `vtable for wxMenu'
main.o(.data$_ZTV6wxMenu+0x0):main.cpp: first defined here

C:/Dev-Cpp/lib/libwxmsw.a(icon.o)(.rdata$_ZTV6wxIcon+0x0):icon.cpp: multiple definition of `vtable for wxIcon'

main.o(.data$_ZTV6wxIcon+0x0):main.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw.a(icon.o)(.rdata$_ZTV13wxIconRefData+0x0):icon.cpp: multiple definition of `vtable for wxIconRefData'
main.o(.data$_ZTV13wxIconRefData+0x0):main.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw.a(menucmn.o)(.rdata$_ZTV10wxMenuBase+0x0):menucmn.cpp: multiple definition of `vtable for wxMenuBase'
main.o(.data$_ZTV10wxMenuBase+0x0):main.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw.a(menucmn.o)(.rdata$_ZTV20wxwxMenuItemListNode+0x0):menucmn.cpp: multiple definition of `vtable for wxwxMenuItemListNode'
main.o(.data$_ZTV20wxwxMenuItemListNode+0x0):main.cpp: first defined here
C:/Dev-Cpp/lib/libwxmsw.a(list.o)(.rdata$_ZTV10wxListBase+0x0):list.cpp: multiple definition of `vtable for wxListBase'
main.o(.data$_ZTV10wxListBase+0x0):main.cpp: first defined here

make.exe: *** [Project1.exe] Error 1

Execution terminated

Any suggestions as to how to fix this issue?

-Jamie
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Mon 2022-8-8  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0