Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-13 Thread Alexandre Oliva
On Apr 13, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > On 13 Apr 2000, Alexandre Oliva wrote: >> On Apr 12, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: >> >> > On 12 Apr 2000, Alexandre Oliva wrote: >> >> On Apr 12, 2000, Michael Bletzinger <[EMAIL PROTECTED]> wrote: >> >> >> >> > Ano

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-13 Thread Kevin Atkinson
On 13 Apr 2000, Alexandre Oliva wrote: > On Apr 12, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > > > On 12 Apr 2000, Alexandre Oliva wrote: > >> On Apr 12, 2000, Michael Bletzinger <[EMAIL PROTECTED]> wrote: > >> > >> > Another option you might to try is listing libstdc++.a as an object >

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-13 Thread Alexandre Oliva
On Apr 12, 2000, Ossama Othman <[EMAIL PROTECTED]> wrote: > On Wed, Apr 12, 2000 at 07:54:47PM -0400, Kevin Atkinson wrote: >> On 11 Apr 2000, Alexandre Oliva wrote: >> > On Apr 10, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: >> > > 1) On many platforms libtool can create shared libraries fo

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-13 Thread Alexandre Oliva
On Apr 12, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > On 12 Apr 2000, Alexandre Oliva wrote: >> On Apr 12, 2000, Michael Bletzinger <[EMAIL PROTECTED]> wrote: >> >> > Another option you might to try is listing libstdc++.a as an object >> > when you are creating your library. >> >> This m

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-12 Thread Ossama Othman
Hi, Geez, I see that I'm being quoted all over the place. :-) On Wed, Apr 12, 2000 at 07:54:47PM -0400, Kevin Atkinson wrote: > On 11 Apr 2000, Alexandre Oliva wrote: > > On Apr 10, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > > > 1) On many platforms libtool can create shared libraries f

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-12 Thread Kevin Atkinson
On 11 Apr 2000, Alexandre Oliva wrote: > On Apr 10, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > > > About a week ago I posted this massage to the libtool mailing but I have > > yet to receive any replies. > > Sorry. I'm drowning in e-mail :-( > > Your message was marked as one I should

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-12 Thread Kevin Atkinson
On 12 Apr 2000, Alexandre Oliva wrote: > On Apr 12, 2000, Michael Bletzinger <[EMAIL PROTECTED]> wrote: > > > Another option you might to try is listing libstdc++.a as an object > > when you are creating your library. > > This may work, as long as you don't pull cin, cout and cerr, nor any > ot

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-12 Thread Alexandre Oliva
On Apr 12, 2000, Michael Bletzinger <[EMAIL PROTECTED]> wrote: > I've had some success linking C++ libraries into C using gcc 2.8.1 and > some of the egcs snapshots on solaris. Now add a proprietary C++ compiler to the picture :-) > If you don't want to use libstdc++ then you need to eliminate

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-12 Thread Michael Bletzinger
Alexandre Oliva wrote: > > On Apr 11, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > > > What are you trying to get at. Are you saying that linking C++ libraries > > into a pure C program simply won't work? > > It will work as long as the program is pure C. But if it has any > other C++ co

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Alexandre Oliva
On Apr 11, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > What are you trying to get at. Are you saying that linking C++ libraries > into a pure C program simply won't work? It will work as long as the program is pure C. But if it has any other C++ components (even disguised as libraries wi

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Kevin Atkinson
On 11 Apr 2000, Alexandre Oliva wrote: > On Apr 11, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > > >> You're linking C++ libraries to a C program? That seems a bit odd. Did I > >> misunderstand you? > > > Why? I have a library that is written in C++ but I would like C > > programs to be

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Alexandre Oliva
On Apr 11, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: >> You're linking C++ libraries to a C program? That seems a bit odd. Did I >> misunderstand you? > Why? I have a library that is written in C++ but I would like C > programs to be able to use my library via extern "C" functions. > Wh

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Alexandre Oliva
On Apr 10, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote: > About a week ago I posted this massage to the libtool mailing but I have > yet to receive any replies. Sorry. I'm drowning in e-mail :-( Your message was marked as one I should reply some day. Like many hundreds of others :-) > 1)

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Kevin Atkinson
On Tue, 11 Apr 2000, Ossama Othman wrote: > Hi Kevin, > > On Tue, Apr 11, 2000 at 02:43:23AM -0400, Kevin Atkinson wrote: > > On Mon, 10 Apr 2000, Ossama Othman wrote: > > > Right. I don't have access to all of the platforms supported by libtool's > > > C library support so I wasn't able to co

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Ossama Othman
Hi Kevin, On Tue, Apr 11, 2000 at 02:43:23AM -0400, Kevin Atkinson wrote: > On Mon, 10 Apr 2000, Ossama Othman wrote: > > Right. I don't have access to all of the platforms supported by libtool's > > C library support so I wasn't able to configurations for all of the > > platforms. Any contrib

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Kevin Atkinson
On Tue, 11 Apr 2000, Michael Bletzinger wrote: > Kevin Atkinson wrote: > > Because libstdc++ is compiled ONLY as a static library. When I tried > > creating a C++ shared library it tried to put the static library into the > > shared library which failed miserably as the code does was not compile

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-11 Thread Michael Bletzinger
Kevin Atkinson wrote: > Because libstdc++ is compiled ONLY as a static library. When I tried > creating a C++ shared library it tried to put the static library into the > shared library which failed miserably as the code does was not compiled > with PIC support. At least that is what I think hap

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Kevin Atkinson
On Mon, 10 Apr 2000, Ossama Othman wrote: > Hi Kevin, > > On Mon, Apr 10, 2000 at 10:22:54PM -0400, Kevin Atkinson wrote: > > > > About a week ago I posted this massage to the libtool mailing but I have > > yet to receive any replies. > > > > I could REALLY use some help here. I understand I

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Ossama Othman
Hi Kevin, On Mon, Apr 10, 2000 at 10:22:54PM -0400, Kevin Atkinson wrote: > > About a week ago I posted this massage to the libtool mailing but I have > yet to receive any replies. > > I could REALLY use some help here. I understand I am using a > developmental version and will be willing to w

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Kevin Atkinson
On Mon, 10 Apr 2000, Kevin Atkinson wrote: > On Mon, 10 Apr 2000, Bob Friesenhahn wrote: > > > Regarding your Problem 2, the way the library I maintain (ImageMagick, > > http://www.imagemagick.org) does it, each module exposes unique > > symbols using a pre-defined naming scheme so that the modu

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Bob Friesenhahn
On Mon, 10 Apr 2000, Kevin Atkinson wrote: > On Mon, 10 Apr 2000, Bob Friesenhahn wrote: > > > Regarding your Problem 2, the way the library I maintain (ImageMagick, > > http://www.imagemagick.org) does it, each module exposes unique > > symbols using a pre-defined naming scheme so that the modu

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Kevin Atkinson
On Mon, 10 Apr 2000, Bob Friesenhahn wrote: > On Mon, 10 Apr 2000, Kevin Atkinson wrote: > > About a week ago I posted this massage to the libtool mailing but I have > > yet to receive any replies. > > Don't feel too bad. I have posted questions to the libtool list quite > a number of times, bu

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Kevin Atkinson
On Mon, 10 Apr 2000, Bob Friesenhahn wrote: > Regarding your Problem 2, the way the library I maintain (ImageMagick, > http://www.imagemagick.org) does it, each module exposes unique > symbols using a pre-defined naming scheme so that the module loader > computes the correct name for symbol in th

Re: 2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Bob Friesenhahn
On Mon, 10 Apr 2000, Kevin Atkinson wrote: > About a week ago I posted this massage to the libtool mailing but I have > yet to receive any replies. Don't feel too bad. I have posted questions to the libtool list quite a number of times, but rarely receive any response (most responses from Ossama

2nd Try: Shared libraries w/ C++ and libltdl

2000-04-10 Thread Kevin Atkinson
About a week ago I posted this massage to the libtool mailing but I have yet to receive any replies. I could REALLY use some help here. I understand I am using a developmental version and will be willing to work with you to help improve libtools. Maybe I should just not use the CXX language fe