Author Topic: Can I link the Turbo C Graphics.lib with C::B?  (Read 5097 times)

Offline liklstar

  • Single posting newcomer
  • *
  • Posts: 7
Can I link the Turbo C Graphics.lib with C::B?
« on: August 12, 2010, 10:07:16 am »
Since my code derive from Turbo C, in code::blocks, I need to link the Graphics.lib with code::blocks! But after I enter "build option->linker setting" and fill the path and name of Graphics.lib in the "link library", my program's building show that it cannot find -lGRAPHICS.LIB. This error block the build process.

Can code::blocks link Turbo C library "Graphics" as you said?
Do I have any problem in setting the link parameters?
What should I do next?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5218
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can I link the Turbo C Graphics.lib with C::B?
« Reply #1 on: August 12, 2010, 10:13:45 am »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline liklstar

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can I link the Turbo C Graphics.lib with C::B?
« Reply #2 on: August 12, 2010, 10:24:51 am »