Thread: Text/backgroundcolor in C?

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    Question Text/backgroundcolor in C?

    Hi again! I have a little question, and I found it in NO tutorial about C I've read before, maybe I did not looked enough: How can I make the textcolor and backgroundcolor of a text? Is it like Pascal:
    Code:
    textcolor(7);
    textbackground(1);
    and then just printf("lyric in white with blue background\n");
    or something like this? Please answer!

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    Talking

    Real thanks for the cool stuff of conio.h! I realy didn't know that I was not soooo wrong! Thanx a lot!

    PS: Your "void mainers ..." animated gif .. . .! REALY COOL! I laughed ten minutes as I saw it the first time...!

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    Angry

    My lovely Compiler, or better the Linker tells me:
    undefenied reference: _textcolor(7);
    or soemthing like this! This is NOT the things I expected! ähm, why does the compiler not tell me that the code does not work? Or does he think it is OK and the linker is a little bit crazy? WHY? My lovely compiler is called lcc-win32 and I've heard not-satisfied things about this compiler! Can this be the mistake?

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    a little bit better thread ;-)

    I tried your post and this are the two errors my linker gives back:
    test.obj .text: undefined reference to '_textcolor'
    test.obj .text: undefined reference to '_textbackground'

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    Question

    HI again! I tried some different things, but I don't get it work! Realy un-developmentable stuff, I think! ähem, can somebody post me WHY the linker says the two errors? Maybe I will get the answer this way...(?)!

Popular pages Recent additions subscribe to a feed