using DEBUG - hopefully

This is a discussion on using DEBUG - hopefully within the C Programming forums, part of the General Programming Boards category; 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 ...

  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, 05:00 PM
  3. Debug --> Exceptions in Visual Studio 2005
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 08-10-2007, 03:12 AM
  4. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 12:08 PM
  5. Ask about Debug Assert Failed
    By ooosawaddee3 in forum C++ Programming
    Replies: 0
    Last Post: 04-25-2002, 12:07 AM

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