Page 1 of 1

Library not found

Posted: Sat Mar 05, 2016 6:21 pm
by Maestro
Hey,

I'm new to C++ and I try to compile simple code with a library .lib.
Building the code gives no errors, but debugging gives error 0xc000135.

I added the directory where the .lib is located in Libraries Search Path and added the filename (without the extension) in Libraries (in linker tab, project settings).
When I open the .exe file in the debug folder, I get the error that .dll is not found (however I'm using .lib).

Someone can point me the problem?

Thank you.

Re: Library not found

Posted: Sun Mar 06, 2016 11:09 pm
by eranif
Not really related to CodeLite. A .lib might require a DLL.
You need to edit the PATH environment variable to point to the location of the DLL

You should search google for better understanding how .lib works on Windows.

To edit PATH inside CodeLite:
Settings->Environment variables

and add line like this:

Code: Select all

PATH=$PATH;/path/to/dll
Replace "/path/to/dll" with the actual path

Eran