[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] rl_filename_completion_function
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] rl_filename_completion_function |
Date: |
Fri, 30 May 2014 09:04:25 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 5/30/14, 8:29 AM, Christer Solskogen wrote:
> On Thu, May 29, 2014 at 2:47 PM, Chet Ramey <address@hidden> wrote:
>>> Hi!
>>>
>>> I've cross compiled readline for mingw-w64 and I noticed that at least cmake
>>> thinks that rl_filename_completion_function is not avilable when the library
>>> is static, while if I build it as a dll it is.
>>> Any reason for this? Something special I can do?
>>
>> Sorry, I haven't seen this one before.
>>
>
> It happens on linux as well. That CMake thinks (I don't know if CMake
> is correct or not) that the function does not exist with a static
> library.
I'm not familiar with cmake. How is it checking whether or not a
particular function exists in a library, and why does it need to know?
> I'm on very thin ice here, but is there a other way (than CMake) to
> check if a function exists in a static library?
Well, other than the autoconf-style compile-a-program-and-see-if-it-links
strategy, there is always `nm':
caleb:readline-6.3-patched chet$ nm libreadline.a | grep
rl_filename_completion_function
00000000000015f0 T _rl_filename_completion_function
Note that some systems preface global symbols with a `_'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/