Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turbo C enhanced graphics

Status
Not open for further replies.

anabetav15

Bioengineer
Aug 22, 2003
2
I´m trying to modify a demo for a comunication of a pc with an anesthesic monitor, but Turbo C 3.0 won't create the .exe file, it shows this kind of errors:

Linker Error: Undefined symbol _IBM8514_driver in module mod.c[sadeyes]

I´ve tried to correct it by creating the drivers objects (IBGOBJ) and adding them to the graphics library (TLIB) but it did´nt work... the questions are:

1)How can I correct the error?

or

2)Should I enhance my graphics library? would that help? how can I do that? (the thing is that the demo suggest to be compiled in an enhanced graphics turboc an I don´t have one)Is there any place where I could get the enhancement for free?

Thank you for your help,[sunshine]
I really need it and apreciate it
 
Replies continue below

Recommended for you

IBM8514 is a specific model of monitor, so it looks like TurboC is trying to compile for that particular display, but can't find the object module.

TTFN
 
That was my guess, but like I said, I have'nt been able to convert it to an object...
 
The IBOBJ is not the 8514 driver, but is the interface to the driver. You need to switch default graphics device to something that you have a driver for.

TTFN
 
It's been times since coding with the Turbo C, but as far I remember, you should declare the driver in question, fex.

#include <graphics.h>
if (registerbgidriver(IBM8514_driver) < 0)exit (1);
... register fonts also... and then

initgraph (&int_driver, &int_mode, &quot;&quot;);
int_error = graphresult();
if (int_error < 0)
{
printf(&quot;Initgraph failed: %s.\n&quot;, grapherrormsg(int_error));
exit(1);
}
/*init graph succesful */
.
.

before that you should check that IBM8514.bgi could be found by compiler/linker.

You could convert them and link them directly to your combiled binary.

as follows...

bgiobj IBM8514 (driver)
bgiobj litt (font)
bgiobj sans

IBM8514.obj, litt.obj and sans.obj is generated, then

tlib graphics +ibm8514 +litt +sans
tcc niftgraf graphics.lib ibm8514.obj litt.obj sans.obj

Regards
Benkku
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor