On 5/30/14, 8:29 AM, Christer Solskogen wrote:
> On Thu, May 29, 2014 at 2:47 PM, Chet Ramey <[email protected]> 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    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to