Operating System - HP-UX
1755701 Members
5031 Online
108837 Solutions
New Discussion

Asking regarding 64-bit porting

 
SOLVED
Go to solution
yck
Advisor

Asking regarding 64-bit porting

Hi all,
I face a problem when compiling C++ code in 64-bit. Below is the error message:
ld: Can't find library for -lnsl_s
I figure out that only /usr/lib have this library file but /usr/lib/pa20_64 didn't have this file. What should I do? Is that exists 64-bit version of libnsl_s.a library? Or got any alternative to solve this problem?

Thanks.

From:
ck
ck
1 REPLY 1
Stefan Farrelly
Honored Contributor
Solution

Re: Asking regarding 64-bit porting


Youre right, there is no 64 bit version of the library libnsl_s. So you have 2 options.

1. compile your program as 32bit only, or;

2. Find the symbol/code in libnsl_s that your are trying to reference and search the other 64bit libraries to see if you can find a 64bit version of it (using the nm command), and if you find it you can link it in from the 64bit lib instead, now you can compile 64bit.
Im from Palmerston North, New Zealand, but somehow ended up in London...