All of lore.kernel.org
 help / color / mirror / Atom feed
* Linking libraries into librados
@ 2015-02-15  5:15 Rafael Shuker
  2015-02-16 13:08 ` Wido den Hollander
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael Shuker @ 2015-02-15  5:15 UTC (permalink / raw)
  To: ceph-devel

Hey guys,

This is my first time posting to this list, and I am a newbie in Ceph
development.

I am trying to write new functions into librados.cc and call external
libraries from that very function.

My problem is that I can't get my head around this build system when
using ./run-make-check.sh and adding a new <some-library-path>.a to
the src/librados/Makefile.am is giving me a headache.

I have successfully adjusted librados.cc and librados.h to do some
what I wanted, but whenever I reference a function in my external
library I get a undefined reference exception during compilation. I
have assumed that this is because I am not linking the library
correctly and would like to know what the correct way to link a .a
library for librados.cc.

TLDR: What is the correct way to add a library for librados.cc?

Thank you all for your help, please tell me if I can provide any more
information.

Cheers

Rafa.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linking libraries into librados
  2015-02-15  5:15 Linking libraries into librados Rafael Shuker
@ 2015-02-16 13:08 ` Wido den Hollander
  0 siblings, 0 replies; 2+ messages in thread
From: Wido den Hollander @ 2015-02-16 13:08 UTC (permalink / raw)
  To: Rafael Shuker, ceph-devel

On 15-02-15 06:15, Rafael Shuker wrote:
> Hey guys,
> 
> This is my first time posting to this list, and I am a newbie in Ceph
> development.
> 
> I am trying to write new functions into librados.cc and call external
> libraries from that very function.
> 
> My problem is that I can't get my head around this build system when
> using ./run-make-check.sh and adding a new <some-library-path>.a to
> the src/librados/Makefile.am is giving me a headache.
> 
> I have successfully adjusted librados.cc and librados.h to do some
> what I wanted, but whenever I reference a function in my external
> library I get a undefined reference exception during compilation. I
> have assumed that this is because I am not linking the library
> correctly and would like to know what the correct way to link a .a
> library for librados.cc.
> 
> TLDR: What is the correct way to add a library for librados.cc?
> 

To understand this correctly. You are not using librados, but you are
trying to modify librados by adding a external library in there?

> Thank you all for your help, please tell me if I can provide any more
> information.
> 
> Cheers
> 
> Rafa.
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-16 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-15  5:15 Linking libraries into librados Rafael Shuker
2015-02-16 13:08 ` Wido den Hollander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.