[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] error linking library at debug mode

* Nitin Dhiman <nitinkdhiman@xxxxxxxxx> [2011-11-15 05:45]:
> After building the project and thereafter running binary as local C++
> application do the job and provides the output.
> But, in debug mode, binary is not able to link with the library which it could
> do in run mode! The error is ' no such file or director'. The library is in
> correct path.
> Do I need to set some environment variables for debug mode?

IIRC the debug configuration should use the same variables, environment,
etc.

> Also, in debug mode, i would like to step through the code of linked library.
> How can I do this in eclipse. 

If gdb can see the debuginfo of the library, this should Just Work.

Andrew