Guidance Forums / wxWidgets (wxWindows) in C++ / trouble compiling demo with devpaks

Search 搜索
Home Home

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

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\"
Executing  make...
make.exe -f "C:\Documents and Settings\JAMIE BERNIER\Desktop\" 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?

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Mon 2022-8-8  Guidance Laboratory Inc. Hits:0