Code::Blocks Forums

User forums => Help => Topic started by: maninthewind on January 04, 2009, 05:37:42 pm

Title: build and run within CB IDE is fine ,but run .exe file outside CB is error
Post by: maninthewind on January 04, 2009, 05:37:42 pm
hi ,
It was fine to run a simple wxwidget with wxsmith program in CB .but it displayed an error like 'couldn't find wxbase28ud_gcc.dll' when I run the .exe file in F:\CodeBlocks\project\client\bin\Debug.
I saw this dll file is in F:\wxWidgets2.8\lib\gcc_dll

ps:I use wxPack_v2.8.8.04.exe  (F:\wxWidgets2.8)  and codeblocks-8.02mingw-setup.exe (F:\CodeBlocks) .

(http://f:/a.bmp)

Can someone help me? :)


Title: Re: build and run within CB IDE is fine ,but run .exe file outside CB is error
Post by: Jenna on January 04, 2009, 05:41:27 pm
dll's have to be either in executables directory or in the systems search path.
Title: Re: build and run within CB IDE is fine ,but run .exe file outside CB is error
Post by: maninthewind on January 04, 2009, 05:50:29 pm
thanks,jens.
it works.
Title: Re: build and run within CB IDE is fine ,but run .exe file outside CB is error
Post by: dje on January 04, 2009, 06:03:43 pm
Hi,

more info on dll search order at this place (http://msdn.microsoft.com/en-us/library/ms682586.aspx).

Dje