Use gotoxy on Dev-C++ compiler

Discussion in 'C' started by imported_Stephen, Sep 12, 2010.

  1. imported_Stephen

    imported_Stephen New Member

    Joined:
    Sep 9, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    I am trying to use gotoxy() function on Dev-C++ compiler but I keep getting undefined reference to gotoxy

    Any idea why? I tried with the sample program and still the same.
    Code:
    #include<stdio.h>
    #include<windows.h>
    #include<conio.h>
    int main()
    {
      printf("Hello!");
      gotoxy(10,10);
      printf("World");
      return 0;
    }
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    gotoxy is not the function supported by many compilers and I mainly used in old TC days. It is not even supported by MSVC and many others.
     
  3. anthrax28

    anthrax28 New Member

    Joined:
    Sep 21, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    try to include
    #include<dos.h>
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice