Thread: Problem in using turbo c in android tablet

  1. #1
    Registered User
    Join Date
    Jan 2014
    Posts
    1

    Problem in using turbo c in android tablet

    Sirs, I am a beginner in c programming .
    I have created a program in c in which a triangle and a box is drawn in graphics mode
    This program is running well in computer, but I want to run it on android jellybean4.0.3 tablet ubislate 7c . I have installed adosbox in that tablet and them installed turbo c .but while compiling that file I see see errors

    undefined symbol _setcolor
    Undefined symbol _initgraph
    Undefined symbol _closegraph
    And some similar errors of functions of file graphics.h

    Please help me

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Why on earth would you want to use a non-standard, 20+ year old compiler and library? Especially on a new device like an Android tablet?

    The errors suggest you don't have the BGI library on your Android. You have the header that tells the compiler what the functions look like, but not the library that actually has the function implementations. I have no friggin' idea how you would get the BGI library compiled for Android....

    Why not use something that was invented this millenium? There are lots of great, free alternatives, both compilers and graphics libraries. Google can help you find them.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    By the way, if you're running in a DOS-emulation environment, then the fact that you're running on an Android shouldn't really make any difference. If you want to develop DOS applications, why don't you install dosbox onto your PC and develop from there? The resulting program should run on any device with a similar emulator.

    The messages suggest a linking error. For example with gcc you would fix this by adding -lfoo to the options to link libfoo.a (which actually contains the functions code mentioned), for other compilers the needed procedure should be in the documentation.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Some things to check:

    1) Under "Options", see whether the graphics.h library option, is checked.

    2) Under "Options" directories, check where Turbo C is showing the graphics library will be looked for. By default, the BGI directory is under TC.
    Where TC is looking for the BGI files, and where they actually are, must agree - of course.

    3) Copy the code you used in a graphics program, from your PC Turbo C graphics program, and paste it over to your tablet Turbo C graphics program. It's easy to get the syntax or order, incorrect. and re-try.

    As soon as you can, throw the Turbo C program into the deep blue sea, and get into the post-Jurassic age of programming.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with strings in Turbo C
    By opalo153 in forum C++ Programming
    Replies: 16
    Last Post: 09-15-2011, 06:24 AM
  2. Graphics problem in turbo c++
    By mushahidh in forum Game Programming
    Replies: 1
    Last Post: 10-31-2010, 08:22 AM
  3. I have a problem with turbo c++ v3.0
    By leeng_viper in forum C Programming
    Replies: 1
    Last Post: 12-22-2002, 02:16 PM
  4. Replies: 0
    Last Post: 09-25-2002, 04:34 AM