[PLUG] Problem with C++ and shared libraries.

amol bhor amolbhor at gmail.com
Wed Jun 27 15:26:50 IST 2007

Hi all,

I am Amol. I want to implement the shared libraries with C++. I
googled for it and found the way to implement shared libraries.

The problem that I am facing is that the _string_ class which is used
in C++ for the string operations is not working with shared libraries.
It gives error as

'string' does not name a type .

Same error I'm getting for iftream & ofstream which are required for
the file operations.

Do I need to speify any library while compiling the the code with
-fPIC option to g++ compiler?
Or do I need to add anything extra?

Kindly help out.

Thanks & regards
Amol Bhor.

More information about the Plug-mail mailing list