[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gfarm-discuss:42192] Re: new to gfarm: g++ linking against libgfarm
- From: Osamu Tatebe <tatebe@xxxxxxxxxxxxxxxx>
- Date: Wed, 09 Jul 2008 08:20:29 +0900 (JST)
Hi all,
I just committed this change of the header file in the sourceforge svn
repository.
PS. The last ';' is not needed.
Thanks,
Osamu
From: Osamu Tatebe <tatebe@xxxxxxxxxxxxxxxx>
Subject: [gfarm-discuss:42191] Re: new to gfarm: g++ linking against libgfarm
Date: Wed, 9 Jul 2008 07:53:43 +0900
> Hi Elzbieta,
>
> Use extern "C" when including gfarm/gfarm.h.
>
> extern "C" {
> #include <gfarm/gfarm.h>
> };
>
> This should be taken care of at the header side, but it
> is not yet.
>
> Thanks,
> Osamu
>
> On Tue, 8 Jul 2008 22:18:47 +0200 (CEST)
> "E.L. Krepska" <ekr@xxxxxxxx> wrote:
>
> > Dear All,
> >
> > I am trying to link a C++ application against libgfarm (v. 2.1.0).
> > It links when using gcc, but (the same code) does not link when
> > using g++ (v.4.1). I compile with
> >
> > g++ -o test test.c -lgfarm -L ../../programs/gfarm/lib/
> >
> > what results in:
> >
> > undefined reference to `gfarm_terminate()'
> > undefined reference to `gfarm_error_string(int)'
> > undefined reference to `gfarm_initialize(int*, char***)'
> >
> > But those symbols are, in fact, present in the library:
> >
> > nm libgfarm.so.0.0.0 |grep gfarm_initialize
> > 00014140 T gfarm_initialize
> >
> > Might it have something to do with OpenSSL? The compilation
> > of libgfarm with g++ fails on it ("CC=g++ ./configure" fails).
> >
> >
> > Thanks,
> >
> > Elzbieta Krepska