Operating System - HP-UX
1834150 Members
2519 Online
110064 Solutions
New Discussion

Unsatisfied symbols: operator new[](unsigned int

 
SOLVED
Go to solution
Dade Huang_2
Occasional Contributor

Unsatisfied symbols: operator new[](unsigned int

We bought a HP J6750 work station recently. When I tried to port our codes from old HP C240
to this new J6750 (run HPUX 11.11), I got following message from aCC compiler:

/usr/ccs/bin/ld: Unsatisfied symbols:
operator new[](unsigned int) (code)
operator new(unsigned int) (code)
*** Error exit code 1

Why this happened?

I also move my old viewkit lib from C240 to J6750. It could be this old lib that caused this happen?

Thanks!

Dade Huang
2 REPLIES 2
Mike Stroyan
Honored Contributor
Solution

Re: Unsatisfied symbols: operator new[](unsigned int

The old library is definitely your problem.
You cannot link 10.X built code on an 11.X
system. That kind of mixing is not supported
in general. In the case of C++ code the
problem becomes obvious because the size_t
parameter to the default new() function changed
from type "unsigned int" to "unsigned long".

You will need 11.00 or 11.11 built versions
of all the code you relink with.

It is possible to run old executables on 11.11.
Dade Huang_2
Occasional Contributor

Re: Unsatisfied symbols: operator new[](unsigned int

Thanks for your answer.