ChanServ changed the topic of #haiku-3rdparty to: Third party devtalk for the Haiku® operating system | Main Haiku channel: #haiku | Bored? Tons of stuff to work on here: https://github.com/HaikuArchives | Logs: https://oftc.irclog.whitequark.org/haiku-3rdparty
smalltalkman has quit []
GrizzlyKiwi has joined #haiku-3rdparty
GrizzlyKiwi has quit []
AlaskanEmily has joined #haiku-3rdparty
kikadf_ has joined #haiku-3rdparty
kikadf is now known as Guest9246
kikadf_ is now known as kikadf
Guest9246 has quit [Ping timeout: 480 seconds]
jmairboeck has joined #haiku-3rdparty
AlaskanEmily has quit [Remote host closed the connection]
sulis has quit [Quit: WeeChat 3.5]
smalltalkman has joined #haiku-3rdparty
Anarchos has joined #haiku-3rdparty
systwi_ has joined #haiku-3rdparty
systwi has quit [Ping timeout: 480 seconds]
<Anarchos> how to link libnetwork.so to a lib.a ?
<jmairboeck> Anarchos: .a files (static libraries) are not linked at all. Linking occurs later when building an executable or a shared library (.so)
<jmairboeck> .a files are just an archive of object files (.o) with an index so that the linker can use them as input
<Anarchos> jmairboeck my lib.a file packs some .o files. one is referencening 'send' from libnetwork.so. but if i do 'nm lib.a | grep send' i got "U send" which means undefined
<jmairboeck> yes, but that is no problem for the lib.a. Consumers of lib.a will have to deal with that.
<Anarchos> makes sense
<jmairboeck> on Windows, using MSVC, you could specify libraries to link to via a pragma in the source code (auto-linking), but gcc doesn't support that. I'm not even sure if the ELF format would allow that.
<Anarchos> jmairboeck no trouble, i just add "-lnetwork" in LDFLAGS for the main program using the lib.a
Anarchos has quit [Quit: Vision[]: i've been blurred!]
jmairboeck has quit [Quit: Konversation terminated!]
AlaskanEmily has joined #haiku-3rdparty