> Where can i get complete description about the compiler and its dependencies
I'm guessing http://www.sun.com/

Or maybe type
man cc
at the command prompt,

Or maybe it's in the pretty manual pages which are (IIRC) called answerbook.

> that is the archive logger_GUI.a file which i have created........
> Is that a problem ......... to .a directly.....
Maybe - I dunno.
It might be the case that you get the whole library "as is", whereas if specified using -l, you only get the part of the library you actually need.

> it is working for gcc Salem
So it's just a "how do I drive my compiler" question then?

Basically, we're both at the same point (neither of us have read the manual). But it's going to be a lot better if you read it rather than me.