|
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
1. problem with compiling need help #4470 Posted by: 2004-06-16 08:15:10 |
C:/Dev-Cpp/include/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
g++.exe hworld.o Test_private.res -o "Test.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\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw
make.exe: *** [Test.exe] Error 1
Execution terminated
Note: The source code is the hello world tutorial with added wxGLCanvas which i finally able to use, at least its defined now.
but I got these errors, which part is wrong? |
2. Re: problem with compiling need help #4475 Posted by: upCASE 2004-06-16 14:48:09 |
Hi! Check the /lib dir if the wxWidgets library is really named libwxmsw.a and if you included the path to it to the linker path. Change the name of the lib, include the path and it should work.upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |
3. Re: problem with compiling need help #4483 |
Hi I think installing MinGW 3.3.1 will solve your problem. I got the same problem when I tried to combine wxWidgets-devpack 2.5.1 and MinGW 3.2. Hope that helps you. |
4. Re: problem with compiling need help #4487 Posted by: 2004-06-16 20:22:10 |
what is the original name of the file?? |
5. Re: problem with compiling need help #4488 Posted by: 2004-06-16 20:23:01 |
upCASE,
the lib dir is the one in dev-cpp?? or in wxWindows?? what is the original name of the file?? |
6. Re: problem with compiling need help #4489 |
lib dir means the directory which the linker should look into for C/C++ binary libraries to link with your code. You can set/change this directory in dev-cpp settings. |
7. Re: problem with compiling need help #4493 Posted by: 2004-06-16 23:14:53 |
I'm getting confused here.
my /lib in wxwindows only has 11 files and 2 folder and none of them has the name libwxmsw.a
I've search the whole harddisk but couldn't find it
what do i do now?? |
8. Re: problem with compiling need help #4496 Posted by: upCASE 2004-06-17 00:13:47 |
Hi! That's what I meant: libwxmsw.a isn't there, so it can't be linked, in turn this results in an error. What files are in the lib dir? Maybe something like libwxmswd.a or libwxmsw25.a??
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |
9. Re: problem with compiling need help #4508 Posted by: 2004-06-17 10:42:15 |
these are the files
/_sc /watcom dummy vms.opt vms_gtk.opt
thats all. |
10. Re: problem with compiling need help #4509 Posted by: 2004-06-17 11:28:10 |
Hi,
I just found out that I need to compile some stuff.
Now that I've finished compiling and it generate some libwxmswd.a Takes so long to compile :(
Anyway, what do I do now?? copy that only that file to dev-cpp/lib/ ?? |
11. Re: problem with compiling need help #4512 Posted by: upCASE 2004-06-17 14:56:25 |
Hi! "Takes so long to compile :(" Yes, with gcc it takes a while (about 15-20 min) to compile. With VC++ it's definitly faster, while with the XCode gcc it's a bit slower. Qt takes about the same time to compile and after all you only do this once (unless you need different libs like Unicode/debug/release etc.) :)
You should have the lib in a place like WXDIR\lib\gcc_lib\libwxmswd.a. Leave it there. All you need to do is open your project, go to the options and add -lwxmswd to the linker options.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |
12. Re: problem with compiling need help #4513 Posted by: 2004-06-17 17:12:22 |
Ok I reinstall everything and haven't update anything yet. The last time, instead of just giving me only 1 error that is cannot find wxmsw, now I finish compiling, it gave me few hundreds error instead. I thought that compiling using cygwin can work for dev-cpp.
Still use wxWindows 2.4.2, dev-cpp 4.9.8.0, and with normal devpack
Now can someone explain how to compile the library for dev-cpp?? I've read the install.txt many times and its ambiguous, maybe its just me. So can someone explain to me step by step please, and if it involve directory or so please state which directory the dev directory or the wxWindows directory.
Thanks |
13. Re: problem with compiling need help #4516 Posted by: upCASE 2004-06-17 20:10:33 |
Hi! Why do you want to use a devpack when you compiled the lib by hand?? Anyway: www.upcase.de -> Got a little tut there about compiling 2.4.2 by hand using dev-c++ and gcc (mingw, should work with cygwin in a similar way). Maybe it would be easier if you use ./configure which should be possible since you use cygwin. What errors did it give?? Linker errors?upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |
14. Re: problem with compiling need help #4526 Posted by: 2004-06-18 11:37:01 |
But if I don't compile there is no libwxmsw.a file
so using devpack is enough?? |
15. Re: problem with compiling need help #4530 Posted by: upCASE 2004-06-18 15:33:04 |
Hi! The purpose of devpacks is to have a mechanism for deploying additional stuff for Dev-C++ (espescially the mingw gcc compiler) like additional libraries, DLLs etc. A devpack basically is an archive that, when started, unpacks its content into specific locations. The wxWidgets devpack contains libwxmsw.a, the headers and some additional stuff. It should work with a recent Dev-C++ release with an UPDATED compiler (needs 3.3.1). Check here http://g.yi.org/forum/read.php?13,4468 for Ladis post on updating gcc. Since you use cygwin I'm not sure if the devpack will/can work at all. I'd definitly advise you to: 1. Use mingw and the devpack 2. Compile the lib yourself with cygwin and use Dev-C++ only as a frontend (same as what I do with MinGW, I don't use the "internal" one that comes with Dev-C++).
For a little guide on compiling http://www.upcase.de If you have further questions feel free to ask.upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |
16. Re: problem with compiling need help #4531 Posted by: 2004-06-18 15:34:53 |
I compile using msys now using FINAL=1 parameter Then I add the wxWindows/lib directory as libary directory in project properties This is the error I get:
Compiler: Default compiler Building Makefile: "C:\Cygwin\home\Maxwell\Test\Makefile.win" Executing make... make.exe -f "C:\Cygwin\home\Maxwell\Test\Makefile.win" all g++.exe hworld.o Project1_private.res -o "Project1.exe" -L"C:/Dev-Cpp/lib" -L"C:/wxWindows/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\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(frame.o): warning: duplicate section `.data$_ZTV7wxFrame' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(menu.o): warning: duplicate section `.data$_ZTV6wxMenu' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(menu.o): warning: duplicate section `.data$_ZTV10wxMenuBase' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(menu.o): warning: duplicate section `.data$_ZTV14wxMenuItemList' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(menucmn.o): warning: duplicate section `.data$_ZTV10wxMenuBase' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(menucmn.o): warning: duplicate section `.data$_ZTV14wxMenuItemList' has different size
C:/wxWindows/lib/libwxmsw.a(appcmn.o)(.text+0x2a0):appcmn.cpp: multiple definition of `wxAppBase::OnInitGui()'
hworld.o(.text$_ZN9wxAppBase9OnInitGuiEv+0x0):hworld.cpp: first defined here C:/wxWindows/lib/libwxmsw.a(appcmn.o)(.text+0x2b0):appcmn.cpp: multiple definition of `wxAppBase::OnRun()' hworld.o(.text$_ZN9wxAppBase5OnRunEv+0x0):hworld.cpp: first defined here C:/wxWindows/lib/libwxmsw.a(appcmn.o)(.text+0x330):appcmn.cpp: multiple definition of `wxAppBase::CreateLogTarget()' hworld.o(.text$_ZN9wxAppBase15CreateLogTargetEv+0x0):hworld.cpp: first defined here C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(framecmn.o): warning: duplicate section `.data$_ZTV7wxFrame' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(logg.o): warning: duplicate section `.data$_ZTV7wxFrame' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(logg.o): warning: duplicate section `.data$_ZTV6wxMenu' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(logg.o): warning: duplicate section `.data$_ZTV10wxMenuBase' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(logg.o): warning: duplicate section `.data$_ZTV14wxMenuItemList' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(mdi.o): warning: duplicate section `.data$_ZTV6wxMenu' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(mdi.o): warning: duplicate section `.data$_ZTV10wxMenuBase' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(mdi.o): warning: duplicate section `.data$_ZTV14wxMenuItemList' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(mdi.o): warning: duplicate section `.data$_ZTV7wxFrame' has different size
C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(textctrl.o): warning: duplicate section `.data$_ZTV6wxMenu' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(textctrl.o): warning: duplicate section `.data$_ZTV10wxMenuBase' has different size C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(textctrl.o): warning: duplicate section `.data$_ZTV14wxMenuItemList' has different size
C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: C:/wxWindows/lib/libwxmsw.a(utilsexc.o): warning: duplicate section `.data$_ZTV7wxFrame' has different size hworld.o(.text+0x37d):hworld.cpp: undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, bool, wxMenu*)' hworld.o(.text+0x3fa):hworld.cpp: undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, bool, wxMenu*)' hworld.o(.text+0x476):hworld.cpp: undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, bool, wxMenu*)' hworld.o(.text+0x511):hworld.cpp: undefined reference to `wxFrame::SetMenuBar(wxMenuBar*)' hworld.o(.text+0x76f):hworld.cpp: undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, bool, wxMenu*)' hworld.o(.text+0x7ec):hworld.cpp: undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, bool, wxMenu*)' hworld.o(.text+0x868):hworld.cpp: undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, bool, wxMenu*)' hworld.o(.text+0x903):hworld.cpp: undefined reference to `wxFrame::SetMenuBar(wxMenuBar*)'
hworld.o(.data$_ZTV7MyFrame+0x14):hworld.cpp: undefined reference to `wxObject::CopyObject(wxObject&) const' hworld.o(.data$_ZTV7MyFrame+0x24):hworld.cpp: undefined reference to `wxWindowBase::LoadFromResource(wxWindow*, wxString const&, wxResourceTable const*)' hworld.o(.data$_ZTV7MyFrame+0x28):hworld.cpp: undefined reference to `wxWindowBase::CreateItem(wxItemResource const*, wxItemResource const*, wxResourceTable const*)'
hworld.o(.data$_ZTV7MyFrame+0x2c):hworld.cpp: undefined reference to `wxFrameBase::Destroy()' hworld.o(.data$_ZTV7MyFrame+0x58):hworld.cpp: undefined reference to `wxFrame::Show(bool)' hworld.o(.data$_ZTV7MyFrame+0x6c):hworld.cpp: undefined reference to `wxFrameBase::MakeModal(bool)'
hworld.o(.data$_ZTV7MyFrame+0x84):hworld.cpp: undefined reference to `wxFrame::RemoveChild(wxWindowBase*)' hworld.o(.data$_ZTV7MyFrame+0xa8):hworld.cpp: undefined reference to `wxWindow::CaptureMouse()' hworld.o(.data$_ZTV7MyFrame+0xac):hworld.cpp: undefined reference to `wxWindow::ReleaseMouse()' hworld.o(.data$_ZTV7MyFrame+0xd0):hworld.cpp: undefined reference to `wxWindow::GetCharWidthA() const' hworld.o(.data$_ZTV7MyFrame+0x124):hworld.cpp: undefined reference to `wxFrameBase::DoClientToScreen(int*, int*) const' hworld.o(.data$_ZTV7MyFrame+0x128):hworld.cpp: undefined reference to `wxFrameBase::DoScreenToClient(int*, int*) const' hworld.o(.data$_ZTV7MyFrame+0x12c):hworld.cpp: undefined reference to `wxFrame::DoGetPosition(int*, int*) const' hworld.o(.data$_ZTV7MyFrame+0x130):hworld.cpp: undefined reference to `wxFrame::DoGetSize(int*, int*) const' hworld.o(.data$_ZTV7MyFrame+0x150):hworld.cpp: undefined reference to `wxWindowBase::DoSetClientObject(wxClientData*)'
hworld.o(.data$_ZTV7MyFrame+0x154):hworld.cpp: undefined reference to `wxWindowBase::DoGetClientObject() const' hworld.o(.data$_ZTV7MyFrame+0x158):hworld.cpp: undefined reference to `wxWindowBase::DoSetClientData(void*)' hworld.o(.data$_ZTV7MyFrame+0x15c):hworld.cpp: undefined reference to `wxWindowBase::DoGetClientData() const' hworld.o(.data$_ZTV7MyFrame+0x160):hworld.cpp: undefined reference to `wxWindow::Reparent(wxWindow*)' hworld.o(.data$_ZTV7MyFrame+0x174):hworld.cpp: undefined reference to `wxWindow::AdjustForParentClientOrigin(int&, int&, int)' hworld.o(.data$_ZTV7MyFrame+0x1b4):hworld.cpp: undefined reference to `wxFrame::Maximize(bool)' hworld.o(.data$_ZTV7MyFrame+0x1b8):hworld.cpp: undefined reference to `wxFrame::Restore()' hworld.o(.data$_ZTV7MyFrame+0x1bc):hworld.cpp: undefined reference to `wxFrame::Iconize(bool)' hworld.o(.data$_ZTV7MyFrame+0x1c0):hworld.cpp: undefined reference to `wxFrame::IsMaximized() const' hworld.o(.data$_ZTV7MyFrame+0x1c4):hworld.cpp: undefined reference to `wxFrame::IsIconized() const' hworld.o(.data$_ZTV7MyFrame+0x1c8):hworld.cpp: undefined reference to `wxFrame::SetIcon(wxIcon const&)' hworld.o(.data$_ZTV7MyFrame+0x1cc):hworld.cpp: undefined reference to `wxFrame::SetMenuBar(wxMenuBar*)' hworld.o(.data$_ZTV5MyApp+0x14):hworld.cpp: undefined reference to `wxObject::CopyObject(wxObject&) const' hworld.o(.data$_ZTV5MyApp+0x50):hworld.cpp: undefined reference to `wxApp::GetStdIcon(int) const' hworld.o(.data$_ZTV6wxMenu+0x14):hworld.cpp: undefined reference to `wxObject::CopyObject(wxObject&) const' hworld.o(.data$_ZTV10wxMenuBase+0x14):hworld.cpp: undefined reference to `wxObject::CopyObject(wxObject&) const' hworld.o(.data$_ZTV14wxMenuItemList+0x14):hworld.cpp: undefined reference to `wxObject::CopyObject(wxObject&) const' hworld.o(.data$_ZTV7wxFrame+0x14):hworld.cpp: undefined reference to `wxObject::CopyObject(wxObject&) const' hworld.o(.data$_ZTV7wxFrame+0x24):hworld.cpp: undefined reference to `wxWindowBase::LoadFromResource(wxWindow*, wxString const&, wxResourceTable const*)' hworld.o(.data$_ZTV7wxFrame+0x28):hworld.cpp: undefined reference to `wxWindowBase::CreateItem(wxItemResource const*, wxItemResource const*, wxResourceTable const*)' hworld.o(.data$_ZTV7wxFrame+0x2c):hworld.cpp: undefined reference to `wxFrameBase::Destroy()' hworld.o(.data$_ZTV7wxFrame+0x58):hworld.cpp: undefined reference to `wxFrame::Show(bool)' hworld.o(.data$_ZTV7wxFrame+0x6c):hworld.cpp: undefined reference to `wxFrameBase::MakeModal(bool)' hworld.o(.data$_ZTV7wxFrame+0x84):hworld.cpp: undefined reference to `wxFrame::RemoveChild(wxWindowBase*)' hworld.o(.data$_ZTV7wxFrame+0xa8):hworld.cpp: undefined reference to `wxWindow::CaptureMouse()' hworld.o(.data$_ZTV7wxFrame+0xac):hworld.cpp: undefined reference to `wxWindow::ReleaseMouse()' hworld.o(.data$_ZTV7wxFrame+0xd0):hworld.cpp: undefined reference to `wxWindow::GetCharWidthA() const' hworld.o(.data$_ZTV7wxFrame+0x124):hworld.cpp: undefined reference to `wxFrameBase::DoClientToScreen(int*, int*) const' hworld.o(.data$_ZTV7wxFrame+0x128):hworld.cpp: undefined reference to `wxFrameBase::DoScreenToClient(int*, int*) const' hworld.o(.data$_ZTV7wxFrame+0x12c):hworld.cpp: undefined reference to `wxFrame::DoGetPosition(int*, int*) const' hworld.o(.data$_ZTV7wxFrame+0x130):hworld.cpp: undefined reference to `wxFrame::DoGetSize(int*, int*) const' hworld.o(.data$_ZTV7wxFrame+0x150):hworld.cpp: undefined reference to `wxWindowBase::DoSetClientObject(wxClientData*)' hworld.o(.data$_ZTV7wxFrame+0x154):hworld.cpp: undefined reference to `wxWindowBase::DoGetClientObject() const'
hworld.o(.data$_ZTV7wxFrame+0x158):hworld.cpp: undefined reference to `wxWindowBase::DoSetClientData(void*)' hworld.o(.data$_ZTV7wxFrame+0x15c):hworld.cpp: undefined reference to `wxWindowBase::DoGetClientData() const' hworld.o(.data$_ZTV7wxFrame+0x160):hworld.cpp: undefined reference to `wxWindow::Reparent(wxWindow*)' hworld.o(.data$_ZTV7wxFrame+0x174):hworld.cpp: undefined reference to `wxWindow::AdjustForParentClientOrigin(int&, int&, int)' hworld.o(.data$_ZTV7wxFrame+0x1b4):hworld.cpp: undefined reference to `wxFrame::Maximize(bool)' hworld.o(.data$_ZTV7wxFrame+0x1b8):hworld.cpp: undefined reference to `wxFrame::Restore()' hworld.o(.data$_ZTV7wxFrame+0x1bc):hworld.cpp: undefined reference to `wxFrame::Iconize(bool)' hworld.o(.data$_ZTV7wxFrame+0x1c0):hworld.cpp: undefined reference to `wxFrame::IsMaximized() const' hworld.o(.data$_ZTV7wxFrame+0x1c4):hworld.cpp: undefined reference to `wxFrame::IsIconized() const' hworld.o(.data$_ZTV7wxFrame+0x1c8):hworld.cpp: undefined reference to `wxFrame::SetIcon(wxIcon const&)' hworld.o(.data$_ZTV7wxFrame+0x1cc):hworld.cpp: undefined reference to `wxFrame::SetMenuBar(wxMenuBar*)' hworld.o(.data$_ZTV10wxListBase+0x14):hworld.cpp: undefined reference to `wxObject::CopyObject(wxObject&) const'
hworld.o(.text$_ZN18wxAcceleratorArrayC1Ev+0x9):hworld.cpp: undefined reference to `wxBaseArray::wxBaseArray()' hworld.o(.text$_ZN18wxAcceleratorArrayD0Ev+0xf):hworld.cpp: undefined reference to `wxBaseArray::~wxBaseArray()' hworld.o(.text$_ZN18wxAcceleratorArrayD1Ev+0xe):hworld.cpp: undefined reference to `wxBaseArray::~wxBaseArray()'
make.exe: *** [Project1.exe] Error 1
Execution terminated
|
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |