本文介绍了如何在代码块中删除conio文件相关的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我包含了conio2.h文件,之后它给了我很多与conio.h库函数相关的错误。

我的项目位置

:D / pratice /cpr.c和其他文件包括在这里。



喜欢

D:\ _practice \ cpr.o:cpr。 ç||未定义引用`gotoxy'|

D:\ _practice \ cpr.o:cpr.c ||更多未定义的对gotoxy的引用关注|

D:\ _practice \ cpr.o:cpr.c ||未明确引用`textbackground'|

D:\ _practice \ cpr.o:cpr.c ||未明确引用`textcolor'|

D:\ _practice \ cpr.o:cpr.c ||未明确引用`clrscr'|



如您所知,您在我正在使用的源代码中定义了conio2.h中的所有函数。但是要删除fileAny解决方案编译programme的这些错误。我没有找到任何解决方案。

libconio.a,libconia_unicode.a,conio.chm还有什么东西可以使用这些文件。这有必要包括所有这些主文件或项目目录中的文件。

解决方案

是'可能'* nix'库'(在windows中说的dll),你应该在构建过程中链接它们(你使用'make'文件吗?怎么/什么是你用来建立你的项目吗?)



顺便说一下,提到的'库'

可能有.h头文件,相应的.h / heade r文件是需要在你的代码中包含的东西



conio.chm - 好吧,'。chm'通常是一个Windows平台编译的帮助文件/模块

I include the conio2.h file and after that it gives me lots of error related to conio.h library function.
my project location
:D/pratice/cpr.c and rest of files are inclued here.

like
D:\practice\cpr.o:cpr.c|| undefined reference to `gotoxy'|
D:\practice\cpr.o:cpr.c|| more undefined references to `gotoxy' follow|
D:\practice\cpr.o:cpr.c|| undefined reference to `textbackground'|
D:\practice\cpr.o:cpr.c|| undefined reference to `textcolor'|
D:\practice\cpr.o:cpr.c|| undefined reference to `clrscr'|

As you know that you define all the function in conio2.h in source code that i am using.But the fileAny solution to remove these error compiling the programme.I did not found any solution of this.
One more thing libconio.a,libconia_unicode.a,conio.chm what are use of these files .Is this necessary to inlcude all above files in main files or project directory.

解决方案

are 'probably' *nix 'libraries' (dlls in windows-speak) that you should link against as part of your build process (are you using a 'make' file ? how/what are you using to build your project in ?)

btw, the 'libraries' mentioned

probably have .h header files, the corresponding .h/header files are the things that need to be 'included' in your code

conio.chm - well, '.chm' is usually a Windows platform compiled help file/module


这篇关于如何在代码块中删除conio文件相关的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 17:38