Generate the library and objects

Hi,
I'm using an IBM software that lets use C++ routines, i have the basic knowledge in C and i'm trying to understand how can invoke the C++ routines.

I did same test ​​using the code file (MyTest.cpp) and had generated the executables through the instruction

bash-3.00$/opt/SUNWspro/bin/CC MyTest.cpp -o MyTest.out
bash-3.00$./MyTest.out
Hello World!!
bash-3.00$

The software compiles the routines together with their processes, so the C++ routines must be identified by the library *.lib (for windows) and *.so (in the case of the Sun) or *.obj the object (for windows) or *.o (SUN).

My question is how to generate the library (*.lib or *.so) and objects (*.o or *.obj).

Thank you in advance for your help
Topic archived. No new replies allowed.