User forums > Using Code::Blocks
Problems with wxWidgets Applications
RKCole:
I followed the instructions on the Wiki to the letter, but I think I still did something wrong. After the compilation was complete, I tried to create and compile/run a wxWidgets application (the one from the template), and I received an error that stated that the program was terminated because wxmsw26_gcc_cb.dll was not found, but the dll file was in the Code::Blocks default directory. Now when I try to open the project (the default template project) I created, I receive an error stating that "codeblocks.exe has encountered an error and needs to close"...I'm not sure what happened...
Sorry for all of the inconvenience here. I'm going to try a fresh install tomorrow, and just go through the process again.
Thanks for the help and responses. Hopefully I just did something minor, and hopefully I can get this fixed.
Take care and thanks for the help so far.
Michael:
After building wxWidgets you have to put the include/lib directory(ies) in C::B. Concerning the dll(s) you can put their path in the system environmental variable PATH (do not put them in windows\sytem32 directory).
You may also want to give a try to Therion's wxWidgets 2.6.2 build.
Michael
RKCole:
Hello again.
I uninstalled/reinstalled both Code::Blocks and wxWidgets 2.6.2. I also went through and re-built wxWidgets. I also registered the DLLs and I believe I set the include/lib up correctly. (The include goes into the compiler (in Settings->Compiler) and the lib folder location is placed in the Linker directories, correct?)
Now when I compile the basic wxWidge5ts template, I just receive an error that states "The program failed to start because wxmsw26_gcc_cb.dll" was not found..."
I noticed there were two DLLs (one in the CodeBlocks directory and one in the wxWidgets-2.6.2\lib\gcc_dll\ directory). Should I register one or both of these in the Path variable under the Environment Variables settings?
I'm sorry for all of this frustration...
Thanks for the help.
Take care.
Game_Ender:
A DLL is a dynamically link library. It contains a bunch of code a program uses when it runs. When a program starts up the OS tries its best to find the DLL the program needs. The first place it look sis in the directory of the executable. So if you just copy the dll to the programs directory it will run just fine.
RKCole:
Thanks, Game_Ender.
That solved the problem.
so, whenever I create a wxWidgets app, I just need to make sure that DLL si copied into the same directory as each created application, correct?
Thanks very much for the responses, everyone. Everythign seems to be working smoothly now.
Take care.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version