Borland C++ 中的链接图形库3.1
我想在DOS应用程序中使用图形库。 我将 #include
添加到我的源文件中,并使用密件抄送构建应用程序:
bcc -3 -ms -P -IC:\BC3\INCLUDE -LC:\BC3\LIB AMtest.c ExtMem.ASM
但是,我收到链接错误:
Turbo Link Version 5.1 Copyright (c) 1992 Borland International
Error: Undefined symbol _closegraph in module amtest.c
Error: Undefined symbol _outtext in module amtest.c
Error: Undefined symbol _moveto in module amtest.c
Error: Undefined symbol _settextstyle in module amtest.c
Error: Undefined symbol _setcolor in module amtest.c
Error: Undefined symbol _settextjustify in module amtest.c
Error: Undefined symbol _graphresult in module amtest.c
Error: Undefined symbol _initgraph in module amtest.c
graphics.lib
is in c:\bc3\lib
文件夹。如何链接图形库?
I want to use graphic library in the DOS application.
I add #include <graphics.h>
to my source file and build the application with the bcc:
bcc -3 -ms -P -IC:\BC3\INCLUDE -LC:\BC3\LIB AMtest.c ExtMem.ASM
However, I get the link errors:
Turbo Link Version 5.1 Copyright (c) 1992 Borland International
Error: Undefined symbol _closegraph in module amtest.c
Error: Undefined symbol _outtext in module amtest.c
Error: Undefined symbol _moveto in module amtest.c
Error: Undefined symbol _settextstyle in module amtest.c
Error: Undefined symbol _setcolor in module amtest.c
Error: Undefined symbol _settextjustify in module amtest.c
Error: Undefined symbol _graphresult in module amtest.c
Error: Undefined symbol _initgraph in module amtest.c
The graphics.lib
is in the c:\bc3\lib
folder. How do I link the graphic library?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用了错误的命令。正确的命令是:
You are using the wrong command. The correct command is: