Library not found

CodeLite installation/troubleshooting forum
Maestro
CodeLite Curious
Posts: 1
Joined: Sat Mar 05, 2016 5:41 pm
Genuine User: Yes
IDE Question: C++
Contact:

Library not found

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Library not found

Post 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
Make sure you have read the HOW TO POST thread
Post Reply