Unsatified symbol

Phil Edwards phil@jaj.com
Mon Apr 8 21:32:00 GMT 2002


On Tue, Apr 09, 2002 at 10:50:14AM +0800, Leong Yew Cheong wrote:
> I'm using gcc 3.0.2 on HP-UX and encountered the following:
> 
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    compare(Student_info const&, Student_info const&)(first referenced in /var/tmp/ccCncpDh.o) (code)
>    read(std::istream&, Student_info&)(first referenced in /var/tmp/ccCncpDh.o) (code)
>    grade(Student_info const&)(first referenced in /var/tmp/ccCncpDh.o) (code)
> collect2: ld returned 1 exit status
> 
> 
> How to solve the problem.

Write those functions.  Make certain that the .o file containing those
functions is being linked in.

This question is more appropriate on a programming mailing list or newsgroup.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Libstdc++ mailing list