gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] timespec_str and test linking


From: Bernd Zeimetz
Subject: Re: [gpsd-dev] timespec_str and test linking
Date: Mon, 14 Oct 2019 00:52:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0


On 9/25/19 2:14 PM, Greg Troxel wrote:
> [...]

> C++ does "name mangling" to encode types into function names, to support
> overloading with different types.  Trouble when interworking with C is..
> not unheard of.

... and thats whats happening here:

> but the library is both missing it and bizarrely has a mangled name:
> 
> gdt 118 ~/SOFTWARE/GPSD/gpsd > nm -g libQgpsmm.so.25.0.0 |egrep timespec
> 000000000001aac3 T _Z12timespec_strPK8timespecPcm


$ echo '_Z12timespec_strPK8timespecPcm' | c++filt
timespec_str(timespec const*, char*, unsigned long)

Actually I do not think that linking with -lgps is the solution here, as
libqgpsmm should contain everything from -lgps if I remember right. Not
sure what the proper fix is, though, might investigate if I find a bit
of time.

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F



reply via email to

[Prev in Thread] Current Thread [Next in Thread]