Re: complie and runtime problem with gcc compiler

Steven, thanks for your reply. But I don't think the problem is generated from original code,because I have runned the code for about 2 years at other machine(same hp-ux version). and I assure that the 64-bit libraries has been installed. I have compared the shlib_path configuration of the new machine with the old ones, and didn't find any difference. So I don't think the resolution you provide can resolve my trouble.

Re: complie and runtime problem with gcc compiler

What you are doing is illegal. You can't mix g++ with aC++ code, remove -lstream.

You also must compile and link with g++, not gcc. Remove -lstdc++.

This warning is scary but it doesn't say where the problem is:ld: (Warning) Potential unresolved symbol "__udivdi3": shared library reference is resolved to non-exported definition in file __udivdi3.o".