conio.h(链接?)问题 [英] conio.h (linking?) problem
问题描述
我正在尝试使用库conio2,虽然当我尝试编译一个程序时,我已经使用
管理了几个相对简单的例子
conio''s函数clrscr不在main()中我从链接器中得到一个错误。
[链接器错误]未定义引用`clrscr''
ld返回1退出状态
我在文件顶部包含conio2.h,其中clrscr()fn是。
如何通过 - 我有多个文件时的lconio参数?不是吗:
gcc -lconio main.c clr_file.c file1.c file2.c ....
有不同的方法吗?当整个程序
在一个文件中时同样的事情。
在文章< e5 *************************** @ news1.tudelft.nl> ,
Mitas Nikos< mi ****** @ yahoo.gr>写道:我正在尝试使用库conio2
请发布指向库conio2的标准兼容代码的链接,
,因为C标准未指定库。我们只在comp.lang.c中处理
标准C.
-
在雷雨期间切勿安装电话线。 " - Linksys
Mitas Nikos在17/09/05写道:我正在尝试使用库conio2,虽然我已经管理过一些相对简单的例子当我尝试编译一个程序时,conio'的函数clrscr不在main()中我从链接器中得到一个错误。
非标准函数头文件库。
[链接器错误]未定义引用`clrscr''
ld返回1退出状态
当我有多个文件时,如何传递-lconio参数?不是吗?它:
gcc -lconio main.c clr_file.c file1.c file2.c ....
是否有不同的方式?整个程序在
一个文件。
< OT>
您必须将缺少的库(类似于-lconio)添加到
项目。
< />
-
Emmanuel
C-FAQ: http:// www。 eskimo.com/~scs/C-faq/faq.html
C库: http://www.dinkumware.com/refxc.html
它是指定的。但任何编写这样代码的人都应该将这些代码转化为蚯蚓并喂给鸭子。 - Chris Dollin CLC
Walter Roberson写道:文章< e5 ************* **************@news1.tudelft.nl> ,M / / Mitas Nikos< mi ****** @ yahoo.gr>写道:我正在尝试使用库conio2
请发布一个链接到库conio2的标准兼容代码,
作为C标准未指定库。我们只在comp.lang.c中处理
标准C.
对不起,这是 http://conio.sourceforge.net/docs/html/conio2_8h.html 。
I am trying to use the library conio2 and though I have managed with a
few relatively simple examples when i try to compile a program which
conio''s function clrscr is not in main() i get an error from the linker.
[Linker error] undefined reference to `clrscr''
ld returned 1 exit status
I include the conio2.h on top of the file where clrscr() fn is.
How do I pass the -lconio parameter when I have multiple files?Isn''t it:
gcc -lconio main.c clr_file.c file1.c file2.c ....
Is there a different way?The same thing worked when the whole program
was in one file.
In article <e5***************************@news1.tudelft.nl> ,
Mitas Nikos <mi******@yahoo.gr> wrote:I am trying to use the library conio2
Please post a link to standard-compliant code for the library conio2,
as the library is not specified by the C standard. We only deal with
standard C in comp.lang.c .
--
"Never install telephone wiring during a lightning storm." -- Linksys
Mitas Nikos wrote on 17/09/05 :I am trying to use the library conio2 and though I have managed with a few
relatively simple examples when i try to compile a program which conio''s
function clrscr is not in main() i get an error from the linker.
Non-standard functions headers and library.
[Linker error] undefined reference to `clrscr''
ld returned 1 exit status
I include the conio2.h on top of the file where clrscr() fn is.
How do I pass the -lconio parameter when I have multiple files?Isn''t it:
gcc -lconio main.c clr_file.c file1.c file2.c ....
Is there a different way?The same thing worked when the whole program was in
one file.
<OT>
You must add the missing library (something like -lconio) to the
project.
</>
--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html
"It''s specified. But anyone who writes code like that should be
transmogrified into earthworms and fed to ducks." -- Chris Dollin CLC
Walter Roberson wrote:In article <e5***************************@news1.tudelft.nl> ,
Mitas Nikos <mi******@yahoo.gr> wrote:I am trying to use the library conio2
Please post a link to standard-compliant code for the library conio2,
as the library is not specified by the C standard. We only deal with
standard C in comp.lang.c .
Sorry, here is the link to http://conio.sourceforge.net/docs/html/conio2_8h.html.
这篇关于conio.h(链接?)问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!