Linux中的Lazarus自然排序 [英] Natural sort from Lazarus in Linux

查看:66
本文介绍了Linux中的Lazarus自然排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Linux中找到了naturalstrcmp函数,我认为这是我需要的。在Ubuntu,Debian和FreeBSD中如何使用它的任何例子?



http://www.unix .com / man-page / debian / 3 / NATURALSTRCMP / [ ^ ]



我应该在外部声明中放置什么名称?在我的Debian 7.7上,来自Alliance包的/usr/share/man/man3/naturalstrcmp.3.gz。



我试过:



函数naturalstrcmp(s,t:PChar):整数;外部'联盟'名称'naturalstrcmp';



没有成功。错误消息显示找不到-lalliance。

I have found naturalstrcmp function in Linux and I think it is what I need. Any example of how to use it in Ubuntu, Debian and FreeBSD?

http://www.unix.com/man-page/debian/3/NATURALSTRCMP/[^]

What is the libname I should put in my external declaration? On my Debian 7.7 it is on /usr/share/man/man3/naturalstrcmp.3.gz from Alliance package.

I tried :

function naturalstrcmp(s, t: PChar): Integer; external 'alliance' name 'naturalstrcmp';

without success. The error message says that "cannot find -lalliance".

推荐答案

错误消息告诉您联盟库( alliance.a alliance.so )在库搜索路径中找不到。检查安装位置,确保提供链接器的路径。
The error message is telling you that the alliance library (alliance.a or alliance.so) cannot be found in the library search path. Check where you have installed it and make sure you provide the path to the linker.


这篇关于Linux中的Lazarus自然排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆