Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: 80sky on October 06, 2006, 07:45:27 am
-
Some days ago, i set a project with wxWidgets in C::B,compiling had no problem,but when I run this program,A prolem had happened. system remind me: this program doesn't find wxmsw26ud_gcc_cb.dll,so it doesn't run.
why ? please help! thanks! consider some days.don't think out the key.
help help help!
-
my system: windows XP sp2 simple chinese
-
wxmsw26ud_gcc_cb.dll is the debug version of the DLL have your tried to compile in the release mode?
Tim S
-
what should I do? please teach me!
I had compiled wxWidgets 2.6.3
I should compile wxmsw26ud_gcc_cb.dll, right?
-
wait online!
-
how to solve this problem !!
please help me!
-
In the release mode, it was still wrong!
The program didn't still find wxmsw26ud_cb.dll, why, why??
Do you meet it? please help solve it, thanks a lot!
-
Do you meet it? please help solve it, thanks a lot!
Hammering the forum with your question won't make us to answer any faster.
Anyway, please put the DLL inside the the folder with your executable. Make sure you really *have* this dll. Please make sure it is called like that, especially watch for the wxmsw26ud_cb.dll and wxmsw26ud_cb.dll.
With regards, Morten.
-
liuke520 is back again :)
-
I had tried, but no usefull.
-
sorry, The dll is wxmsw26ud_gcc_cb.dll not wxmsw26ud_cb.dll
-
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -D__WXDEBUG__ -Winvalid-pch -include wx_pch.h -DUSE_PCH -Wall -O2 -g -ID:\wxWidgets-2.6.3\include -ID:\wxWidgets-2.6.3\lib\gcc_dll\mswud -ID:\wxWidgets-2.6.3\contrib\include -I"C:\Program Files\CodeBlocks\include" -ID:\wxWidgets-2.6.3\include -c wx_pch.h -o wx_pch.h.gch\Release_wx_pch.h.gch
cc1plus.exe: warning: wx_pch.h.gch/Debug_wx_pch.h.gch: created using different flags
cc1plus.exe: warning: ./wx_pch.h.gch/Debug_wx_pch.h.gch: created using different flags
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -D__WXDEBUG__ -Winvalid-pch -include wx_pch.h -DUSE_PCH -Wall -O2 -g -ID:\wxWidgets-2.6.3\include -ID:\wxWidgets-2.6.3\lib\gcc_dll\mswud -ID:\wxWidgets-2.6.3\contrib\include -I"C:\Program Files\CodeBlocks\include" -ID:\wxWidgets-2.6.3\include -c main.cpp -o obj\Release\main.o
cc1plus.exe: warning: ./wx_pch.h.gch/Debug_wx_pch.h.gch: created using different flags
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -D__WXDEBUG__ -Winvalid-pch -include wx_pch.h -DUSE_PCH -Wall -O2 -g -ID:\wxWidgets-2.6.3\include -ID:\wxWidgets-2.6.3\lib\gcc_dll\mswud -ID:\wxWidgets-2.6.3\contrib\include -I"C:\Program Files\CodeBlocks\include" -ID:\wxWidgets-2.6.3\include -c app.cpp -o obj\Release\app.o
cc1plus.exe: warning: ./wx_pch.h.gch/Debug_wx_pch.h.gch: created using different flags
mingw32-g++.exe -LD:\wxWidgets-2.6.3\lib\gcc_dll -L"C:\Program Files\CodeBlocks\lib" -LD:\wxWidgets-2.6.3\lib -o bin\Release\anewone.exe obj\Release\main.o obj\Release\app.o -s -lwxmsw26ud -lgdi32 -mwindows
Process terminated with status 0 (0 minutes, 17 seconds)
0 errors, 4 warnings
this is build log, please help me
-
Do you have this file wxmsw26ud_gcc_cb.dll ?
Try to find out where -D__WXDEBUG__ is coming from if you have this file wxmsw26u_gcc_cb.dll instead.
Edited file names.
If you have neither, this file can be downloaded wxmsw26u_gcc_cb.dll
at http://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z
Tim S
-
sure , I have it. otherwise The C::B doesn't run.
I can't understand what you said. Can you say it clearly, thanks.
-
What is the name of the file you have?
Does the file have an ud in the name?
We need to find out if you have the file which your program is asking for?
Every letter in the filename must match for it to work.
Tim S
-
wxmsw26u_gcc_cb.dll just this .
oh , I have no it .
how can get it. please tell me!
-
You need to find where __WXDEBUG__ is being set.
First look in
Project -> Build Options
under Tab Compiler #defines
If __WXDEBUG__ is there you have to remove it.
Tim S
-
...or link with the correct library.
-lwxmsw26ud
That is a debug build with Unicode.
wxmsw26u_gcc_cb.dll just this
That is the non-debug DLL belonging to Code::Blocks which is not intended to be used in building other applications or being redistributed.
Even though this may work, it is very bad practice.
The file you want is called wxmsw26u_gcc_custom.dll (if you use MinGW and if you did not change the vendor). If you don't have that file, you have to download wxWidgets, and compile it (refer to the documentation at the wxWidgets site on how to do this).
These are build instructions that should work:
cd wxWidgets-2.6.3/build/msw
set path=c:\mingw\bin;c:\mingw\mingw32\bin
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1
-
ok, I compile wxWidgets again!
God bless me! all the best!
-
Checking for existence: K:\c++代码\codeblocks\anewone\bin\Debug\anewone.exe
Executing: C:\Program Files\CodeBlocks/cb_console_runner.exe "K:\c++代码\codeblocks\anewone\bin\Debug\anewone.exe" (in K:\c++代码\codeblocks\anewone\.)
Process terminated with status -1073741515 (0 minutes, 8 seconds)
wxWidgets had compiled again, but the case just like before.
up is build log. still .
don't find wxmsw26ud_gcc_custom.dll, what's wrong? can you help me? thanks a lot!