×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Turbo C enhanced graphics

Turbo C enhanced graphics

Turbo C enhanced graphics

(OP)
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

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,
I really need it and apreciate it

RE: Turbo C enhanced graphics

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

RE: Turbo C enhanced graphics

(OP)
That was my guess, but like I said, I have'nt been able to convert it to an object...

RE: Turbo C enhanced graphics

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

RE: Turbo C enhanced graphics

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, "");
int_error = graphresult();
if (int_error < 0)
{
printf("Initgraph failed: %s.\n", 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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources