I want to use the graphics library in a DOS application. I add #include <graphics.h>to the source file and create the application using bcc:
bcc -3 -ms -P -IC:\BC3\INCLUDE -LC:\BC3\LIB AMtest.c ExtMem.ASM
However, I get 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
graphics.liblocated in the folder c:\bc3\lib. How to link a graphics library?
source
share