help with my conio.h

This is a discussion on help with my conio.h within the C Programming forums, part of the General Programming Boards category; well when i ty this program on a dev compiler it giver me some odd error.. Code: #include <stdio.h> #include ...

  1. #1
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    help with my conio.h

    well when i ty this program on a dev compiler it giver me some odd error..
    Code:
    #include <stdio.h>
    #include <conio.h>
    
    int main()
    {
    
      textcolor (LIGHTGREEN);
      cprintf ("Datainjector");
    
    
    
    
    return 0;
    }
    This program prints Datainjector in color..
    it does work with borland but not with dev i read there help files and they said i should add c:\dev-c++\lib\coni.o tot the "further object Fuiles" in the project options..but it aint workin help me out for cryin' loud ..well or should i just download djgpp

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    > but it aint workin
    Can you be more specific?

    What compile / link / runtime errors (or not) do you get

    For starters, unless it's a typo
    c:\dev-c++\lib\coni.o
    should be
    c:\dev-c++\lib\conio.o

  3. #3
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    never mind i got it

    it works fine now i went and add c:\dev-c++\lib\conio.o to the compiler optins where it says execute command when compiling...

  4. #4
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    Good job! Conio can be pretty comfusing...thers threads like this all over the place

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,659
    The other option is this:


    #include <conio.c>



    ITSA
    Socket Library!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. conio.h not working in *nix
    By wise_ron in forum C Programming
    Replies: 2
    Last Post: 05-04-2006, 01:54 PM
  2. conio.h in Visual C++ ?
    By Born_2B_Alone in forum Windows Programming
    Replies: 3
    Last Post: 09-22-2004, 07:32 PM
  3. Getting textcolor in conio.h to work with Win32
    By MMD_Lynx in forum C Programming
    Replies: 5
    Last Post: 09-02-2004, 01:32 PM
  4. conio.h
    By Jaguar in forum Linux Programming
    Replies: 10
    Last Post: 10-17-2002, 01:12 AM
  5. Conio.h file problems
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 05-23-2002, 01:44 PM

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