Thread: using DEBUG - hopefully

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    93

    using DEBUG - hopefully

    env SunOS 5.6
    gcc-2.95.3

    Hi,

    If I include code similar to this

    Code:
    #ifdef DEBUG
        printf("FILENAME   : %s.\n",  file_name_info.file_name);
        printf("ROUND      : %s.\n",  file_name_info.round);
        printf("ACT_DATE   : %ld.\n", file_name_info.act_date);
        printf("IDENTIFIER : %s.\n",  file_name_info.identifier);
        printf("SEQ_NO     : %d.\n",  file_name_info.seq_no);
        printf("LAST_DATE  : %ld.\n", file_name_info.last_date);
        printf("CREATION   : %s.\n",  file_name_info.creation_time);
        fflush(NULL);
    #endif
    how do I activate it, i.e, which switch do I use when compiling ?


    tia,

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    93
    aah - its two DD's


    ty Salem

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary not built with debug info - why?
    By ulillillia in forum C Programming
    Replies: 15
    Last Post: 12-11-2008, 01:37 AM
  2. makefiles - debug & release?
    By cpjust in forum C Programming
    Replies: 6
    Last Post: 10-26-2007, 04:00 PM
  3. Debug --> Exceptions in Visual Studio 2005
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 08-10-2007, 02:12 AM
  4. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 11:08 AM
  5. Ask about Debug Assert Failed
    By ooosawaddee3 in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2002, 11:07 PM