Thread: Undefined

  1. #1
    Registered User
    Join Date
    Aug 2001


    when i try to declare word or byte variable in turbo c i get undefined messages someone can plz help me?

  2. #2
    Join Date
    Aug 2001
    There's is no standard word or byte variable at least not until C99.

    There's unsigned char which has CHAR_BIT bits and sizeof() 1 and int

    which happens to be 2 bytes in DOS/turbo c.

    My guess is there's something like

    typedef unsigned char BYTE and

    typedef unsigned int WORD in stdlib.h

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    This is what you want:
    typedef unsigned char byte;
    typedef unsigned short word;

    In addition you could do this:
    typedef unsigned long dword;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. C OpenGL Compiler Error?
    By Matt3000 in forum C Programming
    Replies: 12
    Last Post: 07-07-2006, 04:42 PM
  3. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM
  4. Problem with OpenGL tutorial
    By 2Biaz in forum Windows Programming
    Replies: 18
    Last Post: 09-16-2004, 11:02 AM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 09:51 AM