Board index » cppbuilder » Graphicshlib

Graphicshlib


2004-07-16 08:32:52 PM
cppbuilder7
Please I want to use a simple program written with turbo C by P TRAU that I've found in the web
at "www-ipst.u-strasbg.fr/pat/program",it's about how to do elementary graphic with C++:Point,draw line
,init and close graphic mode...an example for a simple graphics.h library is given,but when i compile
this source program bcc32 give me errors a first messages are given below,
*******************************************************************
Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
graphics2.cpp:
Error E2451 graphics2.cpp 30: Undefined symbol 'DETECT' in function g_init()
Error E2268 graphics2.cpp 31: Call to undefined function 'initgraph' in function g_init()
Error E2268 graphics2.cpp 32: Call to undefined function 'graphresult' in function g_init()
Error E2451 graphics2.cpp 33: Undefined symbol 'grOk' in function g_init()
Error E2451 graphics2.cpp 35: Undefined symbol 'cout' in function g_init()
Error E2268 graphics2.cpp 35: Call to undefined function 'grapherrormsg' in function g_init()
************************************************************************
P TRAU gives another example of graphics.h libray in his C++ lesson a "Graphics Library for X11-Unix Plathome"
i think it's for unix platform,you can read a first errors message here:
*************************************************************************************
Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
graphics.cpp:
Error E2451 graphics.cpp 65: Undefined symbol '_display' in function g_init()
Error E2268 graphics.cpp 65: Call to undefined function 'XOpenDisplay' in function g_init()
Error E2451 graphics.cpp 65: Undefined symbol 'NULL' in function g_init()
Error E2451 graphics.cpp 66: Undefined symbol 'rw' in function g_init()
**************************************************************************
how to use this kind of program for turbo C without problem when compiling,can i find a simple graphics.h library written to bcc32 compiler which allow working in graphic mode.
Thank you for help.
 
 

Re:Graphicshlib

moloud GRIECH wrote:
Quote
Please I want to use a simple program written with turbo C by P TRAU that I've found in the web
at "www-ipst.u-strasbg.fr/pat/program",it's about how to do elementary graphic with C++:Point,draw line
,init and close graphic mode...an example for a simple graphics.h library is given,but when i compile
this source program bcc32 give me errors a first messages are given below,

*******************************************************************
Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
graphics2.cpp:
Error E2451 graphics2.cpp 30: Undefined symbol 'DETECT' in function g_init()
Error E2268 graphics2.cpp 31: Call to undefined function 'initgraph' in function g_init()
Error E2268 graphics2.cpp 32: Call to undefined function 'graphresult' in function g_init()
Error E2451 graphics2.cpp 33: Undefined symbol 'grOk' in function g_init()
Error E2451 graphics2.cpp 35: Undefined symbol 'cout' in function g_init()
Error E2268 graphics2.cpp 35: Call to undefined function 'grapherrormsg' in function g_init()
************************************************************************

P TRAU gives another example of graphics.h libray in his C++ lesson a "Graphics Library for X11-Unix Plathome"
i think it's for unix platform,you can read a first errors message here:

*************************************************************************************
Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
graphics.cpp:

Error E2451 graphics.cpp 65: Undefined symbol '_display' in function g_init()
Error E2268 graphics.cpp 65: Call to undefined function 'XOpenDisplay' in function g_init()
Error E2451 graphics.cpp 65: Undefined symbol 'NULL' in function g_init()
Error E2451 graphics.cpp 66: Undefined symbol 'rw' in function g_init()
**************************************************************************

how to use this kind of program for turbo C without problem when compiling,can i find a simple graphics.h library written to bcc32 compiler which allow working in graphic mode.

Thank you for help.
The graphics functions referenced in 'graphics.h' are for 16-bit DOS applications, not 32-bit Windows applications. Incidentally, this newsgroup is a forum for C++Builder, not Turbo C.