Operating System - HP-UX
1833016 Members
2239 Online
110048 Solutions
New Discussion

Compiling STLport on HPUX 11.22

 
Val Dumitrescu
New Member

Compiling STLport on HPUX 11.22

Hi,


After successfully compiling STLport 4.5-0119 on HPUX 11.22 with aCC A.05.36, I compiled a simple test program like this:


#include

int main() {
std::cout << "Four = " << 4 << std::endl;
return 0;
}


using:
aCC -AA +O2 -o mytest -I$STLHOME/stlport main.cpp -L$STLHOME/lib -lstlport


The result? Not "Four = 4\n" as expected, but just "Four = ".
The program terminates normally, says gdb.


I recompiled the library without any optimization flags (removed existing +O2 +Onolimit), and it works.
It also works if I link my test against the static library. I tend to believe there's something wrong with the template instantiation (same library works fine on PA-RISC compiled using +inst_close aCC option; as of yet, I couldn't find the equivalent to that option on A.05.36).


Any thoughts?
Is anybody using STLport on Itanium/HPUX?


Best regards,
Val