[Dev-C++] wxWindows linking problem with Dev-C++ 4
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Dimitri P. <dim...@gm...> - 2003-02-01 17:00:16
|
Hello! I'm trying to run one of the example programs of the wxWindows tutorial using the Dev-C++ 4 IDE (under Windows 2000). =46or this purpose I first installed and built the wxWindows library according to the recommendations given on http://www.wxwindows.org/devcpp.htm. Compilation of the sample application (see attachment) happens without problems, but linking fails due to following errors: <LINKER-ERRORS> C:\work\rf-econ\artefacts\2003_01_29_ioExperiments\sw\src\testapplication= .o: In function `wxCreateApp(void)': //c/work/rf-econ/artefacts/2003_01_29_ioexperiments/sw/src/testapplicatio= n.cpp:8: multiple definition of `wxCreateApp(void)' c:\work\rf-econ\artefacts\2003_01_29_ioexperiments\sw\src\testapplication= .o://c/work/rf-econ/artefacts/2003_01_29_ioexperiments/sw/src/testapplica= tion.cpp:8: first defined here C:\work\rf-econ\artefacts\2003_01_29_ioExperiments\sw\src\testapplication= .o: In function `wxGetApp(void)': //c/work/rf-econ/artefacts/2003_01_29_ioexperiments/sw/src/testapplicatio= n.cpp:8: multiple definition of `wxGetApp(void)' c:\work\rf-econ\artefacts\2003_01_29_ioexperiments\sw\src\testapplication= .o://c/work/rf-econ/artefacts/2003_01_29_ioexperiments/sw/src/testapplica= tion.cpp:8: first defined here C:\work\rf-econ\artefacts\2003_01_29_ioExperiments\sw\src\testapplication= .o: In function `HelloWorldApp::OnInit(void)': //c/work/rf-econ/artefacts/2003_01_29_ioexperiments/sw/src/testapplicatio= n.cpp:10: multiple definition of `HelloWorldApp::OnInit(void)' c:\work\rf-econ\artefacts\2003_01_29_ioexperiments\sw\src\testapplication= .o://c/work/rf-econ/artefacts/2003_01_29_ioexperiments/sw/src/testapplica= tion.cpp:10: first defined here C:\work\rf-econ\artefacts\2003_01_29_ioExperiments\sw\src\testapplication= .o: In function `wxWindowBase::IsShown(void) const': //C/PROGRA~1/WXWIND~1.0/include/wx/window.h(.bss+0x0): multiple definition of `wxTheAppInitializer' c:\work\rf-econ\artefacts\2003_01_29_ioexperiments\sw\src\testapplication= .o(.bss+0x0)://C/PROGRA~1/WXWIND~1.0/include/wx/window.h: first defined here C:\PROGRA~1\DEV-C_~1\Bin\ld.exe: C:\Programme\wxWindows-2.4.0\lib\libwxmswd.a(frame.o): warning: duplicate section `.data$__vt_7wxFrame' has different size C:\PROGRA~1\DEV-C_~1\Bin\ld.exe: C:\Programme\wxWindows-2.4.0\lib\libwxmswd.a(framecmn.o): warning: duplicate section `.data$__vt_7wxFrame' has different size C:\PROGRA~1\DEV-C_~1\Bin\ld.exe: C:\Programme\wxWindows-2.4.0\lib\libwxmswd.a(mdi.o): warning: duplicate section `.data$__vt_7wxFrame' has different size C:\PROGRA~1\DEV-C_~1\Bin\ld.exe: C:\Programme\wxWindows-2.4.0\lib\libwxmswd.a(logg.o): warning: duplicate section `.data$__vt_7wxFrame' has different size C:\PROGRA~1\DEV-C_~1\Bin\ld.exe: C:\Programme\wxWindows-2.4.0\lib\libwxmswd.a(utilsexc.o): warning: duplicate section `.data$__vt_7wxFrame' has different size </LINKER-ERRORS> I would like to know what the problem is and how I can solve it. The source code of the application can be found in the attachment. Thanks in advance Dimitri Pissarenko |