2011-11-27 21 views
5

Quiero utilizar la biblioteca de gráficos en la aplicación DOS. agrego #include <graphics.h> a mi archivo de origen y generar la aplicación con el BCC:biblioteca de gráficos de enlace en Borland C++ 3.1

bcc -3 -ms -P -IC:\BC3\INCLUDE -LC:\BC3\LIB AMtest.c ExtMem.ASM 

Sin embargo, consigo los errores de enlace:

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 

El graphics.lib se encuentra en la carpeta c:\bc3\lib. ¿Cómo puedo vincular la biblioteca gráfica?

+0

¿Usted intentó: 'BCC -3 -ms -P -IC: \ BC3 \ INCLUDE -LC: \ BC3 \ LIB -lgraphics AMtest.c ExtMem.ASM'? – DejanLekic

+0

Aparece el error: 'Fatal: opción Desconocida' –

+0

Es' -lgraphic' (con 'l' = 'ell'). – alk

Respuesta

1

Está utilizando el comando incorrecto. El comando correcto es:

bcc -3 -ms -P -IC:\BC3\INCLUDE -LC:\BC3\LIB graphics.lib AMtest.c ExtMem.ASM 
Cuestiones relacionadas