User forums > Using Code::Blocks

Problem with wxWidgets

<< < (3/3)

duncanka:

--- Quote from: thomas on March 17, 2006, 08:56:51 am ---You can technically use the DLL that you have been using (wxmsw26u_gcc_cb.dll) if you have compatible import libraries, but that is not good practice.
If you have any possibility, you should compile your own from scratch (or use a library from a DevPak).
EDIT: Also, if you have several versions of import libraries and DLLs, make sure you set up your linker paths correctly while building, so it really uses the one you think it does.

--- End quote ---
Sorry, let me clarify: I did build the DLL myself from scratch, then linked against that static library the wxWidgets build created.  I then copied the DLL it built into my C::B devel directory.  Both the static library and the DLL used the "custom" extension.  The only reason I started using anything with the _cb extension was that my executable gave me an error saying that DLL wasn't present, so I tried copying the same DLL file I'd already copied, just under a different name.
So I'm pretty sure it's not a DLL hell issue, and my DLL is in a folder where the OS should be able to find it.

thomas:
Is it possible that you accidentially linked to both libraries?  This can happen for example if you specify one of them in the global compiler options, and the other in the project (or in the target).

It strikes me odd why it should complain about the missing _cb library if you really used the _custom one, otherwise.

Navigation

[0] Message Index

[*] Previous page

Go to full version