STLPort 5.0.2 on Solaris 8

I am using [b]Sun WorkShop 6 update 2 C++ 5.3 2001/05/15[/b] compiler to configure STLport 5.0.2 on Solaris 8.

I am getting following errors.

[b]"../../stlport/stl/_cmath.h", line 229: Error: fabs is not a member of file level. [/b]

Any clues?

Just to cross check that after ignoring this error everything get passed I commented this line and STLport library get created successfully. But when i linkedthat library with my sample application, sample application binary gets created successfully but while [b]executing binary it get hangs[/b] even sample program printing Hello World will get hanged.

Any hints why this is happening?

thanks in advanced

[699 byte] By [nmahindrakar] at [2007-11-26 10:46:13]
# 1
What about std::fabs?Paul
Paul_Floyd at 2007-7-7 2:58:23 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Thanks paul, it worked and now am able to build the STLport 5.0.2 library on Solaris 8 with Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 compiler.

Now I am linking this library with my sample application, it is getting linked successfully but my application binary get hanged.... I am not getting why this binary is getting hanged however while compiling and linking it is not throwing any errors or warnings?

-Nitin

nmahindrakar at 2007-7-7 2:58:23 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Maybe attaching a debugger to the hanged application will give you a hint.To attach dbx to the process, issue$ dbx - <pid>
MaximKartashev at 2007-7-7 2:58:23 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

> Thanks paul, it worked and now am able to build the

> STLport 5.0.2 library on Solaris 8 with Sun WorkShop

> 6 update 2 C++ 5.3 2001/05/15 compiler.

>

> Now I am linking this library with my sample

> application, it is getting linked successfully but my

> application binary get hanged.... I am not getting

> why this binary is getting hanged however while

> compiling and linking it is not throwing any errors

> or warnings?

>

> -Nitin

You can use truss <programname> or truss -p <pid> to look what's happening.

I've met that problem before, it's because I use .so file and put it to different path, so it hangs there.

sydbill at 2007-7-7 2:58:23 > top of Java-index,Development Tools,Solaris and Linux Development Tools...