1753283 Members
5487 Online
108792 Solutions
New Discussion юеВ

Error while compilation

 
SOLVED
Go to solution
Anand_30
Regular Advisor

Error while compilation

I am getting the following error while compilation:

/usr/bin/ld: Can't find library for -lct_r

I am using gcc compiler on HP-UX 10.20. Can anyone please tell me what is the cause of this problem.

Anand.

3 REPLIES 3
Umapathy S
Honored Contributor
Solution

Re: Error while compilation

Anand,
If I am correct the ct_r represents sybase libraries. Try to include the path of those in your linker step.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Anand_30
Regular Advisor

Re: Error while compilation

Thanks Umapathy, After including the sybase libraries, the compilation is successful but I have some more problems while compiling different components. I was able to compile these components fine sometimes back but I am getting the following errors now:

collect2: executing gcc: Permission denied
collect2: gcc returned 33 exit status

The Web - Objects were installed sometimes back and after that I am getting the above mentioned error. Can you or anyone else please help me out on this.

Anand.
Umapathy S
Honored Contributor

Re: Error while compilation

Anand,
Something is wrong with your gcc installation. collect2 is a special program used to link Objective C and C++ programs (it's invoked by
gcc). Apparently it's trying to invoke gcc, but the gcc it's invoking isn't right. Make sure that the collect2, ld, and gcc you're using are
all from the same gcc version.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!