int86() - undefined reference

This is a discussion on int86() - undefined reference within the C Programming forums, part of the General Programming Boards category; I am trying to use the int86 (or _int86) function to use bios interrupts. it is not a ANSI standard ...

  1. #1
    Registered User Kagey's Avatar
    Join Date
    Nov 2002
    Posts
    12

    int86() - undefined reference

    I am trying to use the int86 (or _int86) function to use bios interrupts. it is not a ANSI standard function, but it should be available in most libraries.

    I am using dev-c++ which uses the mingw compiler. whenever i try to call the int86 function, i get a
    [Linker error] undefined reference to `int86'
    error. any ideas on how i can use the int86 function properly? (I'm pretty sure it is in libc, so i dont have to import anything right?)

    thanks

  2. #2
    Registered User Kagey's Avatar
    Join Date
    Nov 2002
    Posts
    12
    would i be able to comile dos stuff with borland or visual c++, i've never used them before, so i'm not sure.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Mingw is a windows compiler and so I doubt it offers the functionality that you are seeking. This function was used in old 16Bit compilers, so you would have to limit yourself to one of them to be able to use it. Also, you cant directly access BIOS interupts in a windows program as your app will run in User Mode, and that functionality is not available normally......you may get away with doing this with a DOS compiler....but its not guaranteed

    :: Salem to quick for me ::

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by Kagey
    would i be able to comile dos stuff with borland or visual c++, i've never used them before, so i'm not sure.
    No

    http://www.c-for-dummies.com/faq/ 1.2.2

  5. #5
    Registered User Kagey's Avatar
    Join Date
    Nov 2002
    Posts
    12
    oh Fordy, thanks for that link. i've been trying to find an explaination on thet net about it, but couldnt find anything, thanks.

    so would i be able to do character graphics in a console by using inline assembly instead of the int86 function?

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by Kagey
    oh Fordy, thanks for that link. i've been trying to find an explaination on thet net about it, but couldnt find anything, thanks.

    so would i be able to do character graphics in a console by using inline assembly instead of the int86 function?
    I guess you can use ASM to jump to Kernel Mode, but I doubt this is what you need...

    If you wish to do graphics then look at using the facilities widely available.....Look at learning a graphics library like OpenGL or DirectX....that's how games are written these days.....Dos is dead...

    Go have a peek at www.gamedev.net ....there's enough there to keep you challenged for a long time to come

  7. #7
    Registered User Kagey's Avatar
    Join Date
    Nov 2002
    Posts
    12
    i suppose you're right. thanks for the guidance.

  8. #8
    Registered User
    Join Date
    Dec 2001
    Posts
    88
    you can use Improved Console which offers you simple graphics. It's not much, but for simple things it works fine
    Hope you don't mind my bad english, I'm Austrian!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. C OpenGL Compiler Error?
    By Matt3000 in forum C Programming
    Replies: 12
    Last Post: 07-07-2006, 04:42 PM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 09:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21