Guidance Forums / wxWidgets (wxWindows) in C++ / Linker errors and warning

Search 搜索
Home Home

Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Linker errors and warning
Posted by: 2004-04-16 06:31:03
I installed latest Dev-cpp, imagelib-1.DevPak and WxWindows-2.2.9.DevPak. I created new wxWindows project, but when I try to compile firstly I get this warning: 2 D:\Users\Andrius\Programing\Dev-Cpp\include\c++\backward\backward_warning.h:32
#warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 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. Program compiles, however when it can't to link. I got lots of linker errors with lots undefined references (for example: 
[Linker error] undefined reference to `wxFrame::sm_eventTable'
). Like I understand it is something wrong this including files, but maybe I am wrong. Can anybody help? Thank you in advance.
Message2. Re: Linker errors and warning
Posted by: 2004-04-16 14:19:25

Why don't you install imagelib-2. wxWidgets & contrib 2.42 ???

I had a particular problems to compile, with  linker errors.
Have you seen post named "Compilation error" ??
Try this, maybe it will resolve yours....

Use these as compiler C++ settings:

And these as linker settings (for wxWidgets 2.4.2):
Message3. Re: Linker errors and warning
Posted by: upCASE 2004-04-18 19:05:09
Nope, there is nothing wrong in the include files.
The problem is that the wxWidgets devpack for version 2.2.9 is pretty outdated. It won't work with never versions of gcc. You'll need a more recent version.
I hope to bring parts of my homepage online today ( There you'll find a devpack for 2.4.2 and a tutorial on compiling wxWidgets with gcc youself. I'll have to update the instructions someday, because with 2.5.1 it's a bit different.
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message4. Re: Linker errors and warning
Posted by: 2004-05-01 00:03:32
Thanks upCASE, new version of wxWindows solved the problem.
Message5. Re: Linker errors and warning
Posted by: 2004-05-07 21:30:30
I have the new version of WxWin and put the mentioned settings and i have this error:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Examples\wxwindows\contrib\plot\"
Executing  make...
make.exe -f "C:\Dev-Cpp\Examples\wxwindows\contrib\plot\" all
windres.exe -i plot_private.rc -I rc -o plot_private.res -O coff

windres.exe: can't open cursor file `wx/msw/hand.cur': No such file or directory

make.exe: *** [plot_private.res] Error 1

Execution terminated

The path to that hand.cur is well set and i dont understand what's the problem

Can anybody help? Thank you in advance.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
© Thu 2024-5-30  Guidance Laboratory Inc. Hits:0