This content has been marked as final. Show 4 replies
I can't tell from your post how you built your program. If you want to use STLport with your program built with Studio C++, you need to add the option
to every CC command, compiling and linking. The option needs to be used for the entire program, including any C++ shared libraries that you use.
If you follow that procedure, you should find that libstlport.so.1 is linked to your program. To verify that Studio is correctly installed, try building a "hello world" program:
Various options can cause the static libstlport.a to be linked instead, accidentally or on purpose. If you still have a problem, please show the complete command line that you used to link the program. (You can abbreviate all the .o files as *.o, but show everything else.)
% CC hello.cc -library=stlport4 % ldd a.out | grep stlport libstlport.so.1 => /studio/install/directory/.../libstlport.so.1
One of the files that is installed with Studio lists the libraries that you can freely redistribute with your application. The name and location of that file varies with the version of Studio. For Studio 12.2, the file is
All versions of Studio allow redistribution of the STLport library.
For a discussion of best practices in shipping a shared library with your application, please see this series of articles:
More precisely, libstlport.so.1 is included in a package that is part of the compiler installation. You cannot redistribute those packages.
You can redistribute the library file (not the package it comes in) as part of your application. The articles I referenced earlier explain exactly how to do that.