fam
[Top] [All Lists]

Re: [fam] Class names

To: bastian@xxxxxxxx
Subject: Re: [fam] Class names
From: "Rusty Ballinger" <rusty@xxxxxxxxxxxxxxxxxx>
Date: Thu, 11 May 2000 17:28:37 -0700
Cc: fam@xxxxxxxxxxx
In-reply-to: Waldo Bastian <bastian@xxxxxxxx> "[fam] Class names" (May 11, 11:20am)
References: <00051111202002.21991@wantelbos>
Reply-to: rusty@xxxxxxx
Sender: owner-fam@xxxxxxxxxxx
> I encountered some problems when linking KDE programs with FAM. The problem
> is caused by libfam containing "Client" as class. This collides with
> programs which define such a class as well.

I just tried a little test program containing its own Client class
(including some of the same methods as the Client class in libfam), and
was able to link it with libfam; then I tried moving the client class into
a separate shared library and linking with that, so the program was linking
with two different libraries containing classes called Client, and it all
linked & ran OK on both Linux & IRIX.  (On IRIX I got warnings about the
multiple definitions, though.)  I can send you the little test if you want
to see whether it works on your machine, but you're right that it should be
fixed.

libfam should export only the symbols listed in fam.h.  I know how to do
this with SGI compilers; does anyone know how to do it with g++/GNU ld?

--Rusty

--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>