2011-11-27 16 views
5

DOS uygulamasında grafik kitaplığı kullanmak istiyorum. benim kaynak dosyasına #include <graphics.h> ekleyip bcc ile uygulama oluşturmak:Bağlantı grafik kitaplığı Borland C++ 3.1

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

Ancak, bağlantı hataları alıyorum:

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.libc:\bc3\lib klasörde bulunuyor. Grafik kitaplığını nasıl bağlarım?

+0

denedin: 'bcc -3 -ms -P -IC: \ BC3 \ DAHİL -LC: \ BC3 \ LIB -lgraphics AMtest.c ExtMem.ASM'? – DejanLekic

+0

Hata alıyorum: 'Fatal: Bilinmeyen seçenek ' –

+0

' -lgraphic' ('l' =' ell 'ile). – alk

cevap

1

Yanlış komut kullanıyorsunuz. Doğru komut şöyledir:

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