什么是编译使用ncurses的lib目录c当-lcurses和-lncurses之间的区别? [英] What's the difference between -lcurses and -lncurses when compiling C using ncurses lib?

查看:929
本文介绍了什么是编译使用ncurses的lib目录c当-lcurses和-lncurses之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习C和与ncurses的LIB播放。我已经看到了这两个-lcurses和-lncurses引用,但我还没有(编译时都工作)找到任何差异。

I'm learning C and playing with the ncurses lib. I have seen references to both -lcurses and -lncurses but I have yet to find any differences (both work when compiling).

鸭preciate的帮助!

Appreciate the help!

推荐答案

的ncurses 是原始的Unix的一个开源克隆诅咒库。 libcurses。* 通常指向的libncurses * 以提供兼容性与原库,所以就用了另一种之间没有实际的区别。

ncurses is an open-source clone of the original Unix curses library. libcurses.* usually points to libncurses.* to provide compatibility with the original library, so there would be no practical difference between using one over the other.

如果您实际上确实有一个以上的诅咒型库安装的 -lcurses 的实质上将你的程序链接到默认的,而 -lncurses 的会明确选择ncurses的实现。

If you do in fact have more than one 'curses-type' library installed, -lcurses would essentially link your program to the default one, whereas -lncurses would explicitly choose the ncurses implementation.

这篇关于什么是编译使用ncurses的lib目录c当-lcurses和-lncurses之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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