User forums > Using Code::Blocks
Eyecare in wxWidgets 2.8.3
eckard_klotz:
Hello Parrimin.
I think you have to add the wx-librarys to the linker-settings of your project.
Try the following:
Open the project build options and sellect the linker-settings.
Here you can add precompiled libraries with add and then the ...-button.
Search the lib-directory in your wx-path where you find the *.a files.
First take them all and try it out. If it works try to skip those libs you don't need.
If your examples have project-files of DevC++ or MS Visual C++ it may be an alternative to import this project-files (file-menu) instead to create an own project.
I hope this helps.
By the way this works only if you have a compiled version of wxWidgets. It is not enough to download the sources only. Try the DevC++ installer/updater plugin to install a precompiled version from "http://devpaks.org/".
Regards,
Eckard Klotz.
parrimin:
Hey! Thanks for your reply.
I tried to add more libraries, but there aren´t no more libraries to add. There like 19 libraries added, like libwxmsw28u_richtext.a, libwxmsw28u_dbgrid.a, libwxbase28u_odbc.a, libwxmsw28u_xrc.a... libwxmsw28u_dbgrid i think is the library i need. Perhaps there is a problem with that library, but, i dont know how to solve it. My error message while compiling is:
--- Quote ---:: === EyeCare, Release ===
ld.exe:: cannot find -lwxmsw28u_dbgrid
:: === Build finished: 1 errors, 0 warnings ===
--- End quote ---
eckard_klotz:
Hello Parrimin.
Do you use the right search-directory for the linker. You can check it in the project build options.
Until now I still use "2.6.3" for my wxWidgets projects, so I can't say some thing about the grid-library of "2.8.3".
How did you get your "2.8.3"? Did you compiled it by your self or do you use a precompiled version?
Have you the same trouble with "2.6.3"?
Most of your libraries are called "libwxxxxxx_dbyyy.a" wich means they are debug-versions. Do you the same problem it in the normal release-mode where you have to use the libraries of the type "libwxxxxxx_yyy.a" (I think so).
Regards,
Eckard Klotz.
parrimin:
Hi eckard.
Surely i had a bad installation or something similar, but i can´t see what i did wrong.
I have installed wxWidgets 2.8.3 in D:\wxWidgets-2.8.3 directory.
If i go to search-directory in build options, it says
Resource compiler ------> D:\wxWidgets-2.8.3\lib\gcc_lib\mswu
Linker------------------> D:\wxWidgets-2.8.3\lib\gcc_lib
Compiler----------------> D:\wxWidgets-2.8.3\lib\gcc_lib\mswu
How did i get 2.8.3? I can´t remember exactly, but i followed some tutorial on how to install mingw & wxwidgets. This manual explained how to compile my wxWidget. First i compiled like it said exactly, but after having problems to run wxWidgets apps, someone helped to me to recompile as a static library, build = release, monolithic = 0, unicode = 1. I think those were the compile options i think. Then i was able to create a simgle wxWidget window, and run properly.
After that I tried to compile the demos, creating projects like i said before, and i have problems with some of them...
The libraries added to my project are linked automatically, since the project has been created from a wizard, where i can select all the libraries i need. Seeing i had compiling problems, i added all the libraries, and now there is only one error.
The projects are compiling in release mode, and i think the libraries added are of release-mode type, as i compiled wxwidgets in release mode.
And, 2.6.3 running? Don´t tested, but i have to say that i have no problem drawing single windows with my 2.8.3, but before trying to make more complex things, i´m trying to solve this error, because i think i´ll find it another time
That is the summary
eckard_klotz:
Hello Parimin
Another way to test, is to use a precompiled version of wxWidgets. Take a look at "http://devpaks.org/". Here you will find a lot of precompiled c/c++ libraries as so caled dev-paks. Originaly this file format was introduced for an other ide but C::B has a plugin to install this packeges too. Rename your "2.8.3" folder and try to install the devpack perhaps you have to change the search-directories.
By the way you wrote :
--- Quote --- Resource compiler ------> D:\wxWidgets-2.8.3\lib\gcc_lib\mswu
Linker------------------> D:\wxWidgets-2.8.3\lib\gcc_lib
Compiler----------------> D:\wxWidgets-2.8.3\lib\gcc_lib\mswu
--- End quote ---
Are you shure that the compiler-directory is realy "\wxWidgets-2.8.3\lib\gcc_lib\mswu" and not
"\wxWidgets-2.8.3\include\ xxx". In my wxWidget-version the include-header have their own directory. But on the other way if an include-directory is missing the compiler will give an other error.
Regards,
Eckard Klotz.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version