Bug 120630 - Project will not run when referencing other shared library projects
Summary: Project will not run when referencing other shared library projects
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 12:08 EST by Fernando Herrero Carrón CLA
Modified: 2020-09-04 15:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Herrero Carrón CLA 2005-12-13 12:08:57 EST
I am running

Version: 3.1.1
Build id: M20050929-0840

on FreeBSD 6.0-STABLE self built from ports, with CDT 3.0.0

I have a project that builds a shared library and an executable project which depends on this library. The project compiles without problem but when I try to run it I get the following error from the linker:

/libexec/ld-elf.so.1: Shared object "libGraphLib.so" not found, required by "GraphTest"

This libGraphLib.so actually exists under ...workspace/GraphLib/Debug.

I have also tried setting the environment variable LD_LIBRARY_PATH in run->Environment and/or setting the appropriate path in run->Debugger->Shared Libraries but neither works.
Comment 1 Lucas CLA 2006-11-04 06:00:32 EST
I think i had a same kind of error but using CDT in windows 2000. When I used the file browser button to select the linker path it doesn't finish the path with "\" and it can't find the libraries. I solve it editing the path and adding the bar. 
You can try with this ! I expect that works to you too!


(In reply to comment #0)
> I am running
> 
> Version: 3.1.1
> Build id: M20050929-0840
> 
> on FreeBSD 6.0-STABLE self built from ports, with CDT 3.0.0
> 
> I have a project that builds a shared library and an executable project which
> depends on this library. The project compiles without problem but when I try to
> run it I get the following error from the linker:
> 
> /libexec/ld-elf.so.1: Shared object "libGraphLib.so" not found, required by
> "GraphTest"
> 
> This libGraphLib.so actually exists under ...workspace/GraphLib/Debug.
> 
> I have also tried setting the environment variable LD_LIBRARY_PATH in
> run->Environment and/or setting the appropriate path in run->Debugger->Shared
> Libraries but neither works.
>