Compile Errors ...

This is a discussion on Compile Errors ... within the C++ Programming forums, part of the General Programming Boards category; Why may i ask that when i compile some C/C++ code and try to compile it using Borland C++ 4.x ...

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187

    Unhappy Compile Errors ...

    Why may i ask that when i compile some C/C++
    code and try to compile it using

    Borland C++ 4.x (on the WIN/GUI) or at the
    command line with bcc32 ProgramName.cpp

    I get these errors :

    Error cursor.cpp 24: Call to undefined function 'bioskey' in function main()
    Error cursor.cpp 32: Call to undefined function 'sound' in function main()
    Error cursor.cpp 33: Call to undefined function 'delay' in function main()
    Error cursor.cpp 34: Call to undefined function 'nosound' in function main()

    ================
    = Some Code : =
    ================
    #include<iostream.h>
    #include<conio.h>
    #include<bios.h>
    #include<dos.h>

    void main(){

    int key,col,row;

    clrscr();
    _setcursortype(_NOCURSOR);

    sound(404);
    delay(100);
    nosound();
    }
    ================

    I get these errors sometimes and if someone can solve them, well, i'd appreciate it

    Thanks in Advance


  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,499
    > #include<conio.h>
    > #include<bios.h>
    > #include<dos.h>
    Unless you're compiling for DOS (not a console window), using a real DOS compiler (not a windows/console compiler), then these files will not do much for you.

    > void main(){
    read the FAQ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange compile errors
    By csonx_p in forum C++ Programming
    Replies: 10
    Last Post: 07-28-2008, 11:41 AM
  2. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 05:00 AM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 04:44 PM
  4. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 12:43 PM

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