[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SUMMARY: C++ compiler problem




  Many many thanks for all the replies. I got a lot of replies.
  Please excuse me if I donot mention the names ofthe people
  who sent the replies.

  The solution is very simple:

   cxx adip.cpp -lm

 My Question was:
==============

Iam getting unsatisfied externals by the compilation of a C++ program:

 $cxx -V adip.cpp 
Compaq C++ V6.3-002 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-002 (cxx) cxx Driver
$cxx adip.cpp
ld:
Unresolved:
sqrt

    OS = V5.1 with the latest patches installed

  sizer -v output:
  
  $/usr/sbin/sizer -v
Compaq Tru64 UNIX V5.1 (Rev. 732); Fri May 25 11:24:22 GMT 2001

     Any help is appreciated.

   Inside the program the statement look like this:

  b=sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);

   regards,
   Kumar