[arch-general] Link against system libs

2017-04-06 Thread Wolfgang Mader
Hi all, I have a general question about linking in C++ with which you can probably clarify for me. Arch ships with a lot of libraries of which .a and .so are stored in /usr/lib and beyond. These libraries are compiled by some compiler, the compiler by which the entire arch linux distribution p

Re: [arch-general] Link against system libs

2017-04-06 Thread Martin Kühne via arch-general
On Thu, Apr 6, 2017 at 2:13 PM, Wolfgang Mader wrote: > Arch ships with a lot of libraries of which .a and .so are stored in /usr/lib > and beyond. These libraries are compiled by some compiler, the compiler by > which the entire arch linux distribution packages are compiled with. By the > way, wh

Re: [arch-general] Link against system libs

2017-04-06 Thread Martin Kühne via arch-general
Also, I forgot to add some literature on the subject, too. [0], [1], [2] cheers! mar77i [0] https://linux.die.net/man/8/ld-linux [1] http://www.linuxjournal.com/node/6463/print [2] http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

Re: [arch-general] Link against system libs

2017-04-06 Thread Lukas Jirkovsky via arch-general
On 6 April 2017 at 14:13, Wolfgang Mader wrote: > If this compiler is a c++ one, it does its specific name mangling. Thus, > linking against these libs should only be possible for binaries compiled with > the same c++ compiler. However, arch ships gcc6, gcc5, and clang. Does it also > ship librari

Re: [arch-general] Link against system libs

2017-04-06 Thread Neven Sajko via arch-general
GCC 6 builds Archlinux.

Re: [arch-general] Link against system libs

2017-04-06 Thread Neven Sajko via arch-general
On 7 April 2017 at 06:07, Neven Sajko wrote: > GCC 6 builds Archlinux. It's in the base-devel group btw, along with other packages generally required for building: https://www.archlinux.org/groups/x86_64/base-devel/ Also, you might want to read the makepkg page on wiki.archlinux.org. And you ca