[PLUG] Problem with C++ and shared libraries.
khadgaray at gmail.com
Fri Jun 29 00:54:43 IST 2007
On Wed, 2007-06-27 at 15:26 +0530, amol bhor wrote:
> 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?
On newer version you would need to import std namespace, or explicitly
specify the namespace
using namespace std;
> Kindly help out.
> Thanks & regards
> Amol Bhor.
> Pune GNU/Linux Users Group Mailing List: (plug-mail at plug.org.in)
> List Information: http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail
> Send 'help' to plug-mail-request at plug.org.in for mailing instructions.
ॐ मणि पद्मे हूँ
LinuX N Stuff
Eat Right, Exercise, Die Anyway.
More information about the Plug-mail