compiler error gcc 2.95.3

This is a discussion on compiler error gcc 2.95.3 within the C Programming forums, part of the General Programming Boards category; Hi, this is the contents of a header file Code: /********************************************************************* * PROGRAM DETAILS * ********************************************************************** * PROGRAM NAME : ...

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

    compiler error gcc 2.95.3

    Hi,

    this is the contents of a header file

    Code:
    /*********************************************************************
    *                         PROGRAM DETAILS                            *
    **********************************************************************
    *  PROGRAM NAME    : cirp_enumeration.h
    *  CURRENT VERSION : 1.0
    *  DESCRIPTION     : This header lays out the details for the field
    *                    names connected with the CIRP data extract in
    *                    an enumeration style
    *
    *  INPUT FILE      :
    *  OUTPUT FILES    :
    *
    *  MODIFICATION HISTORY
    *  --------------------
    *  VERSION     DATE     PROGRAMMER    DESCRIPTION
    *  -------   --------   -----------   -----------
    *    1.00   29/09/2003                Creation
    *
    *********************************************************************/
    
    #ifndef CIRP_ENUMERATION_H
    #define CIRP_ENUMERATION_H
    
    
    enum
    {
       COUNTRY,                                         <<<<== line 27
       REGION_CODE,
       REGION_NAME,
       COUNTRY_ISO3_CODE,
       COUNTRY_ISO2_CODE,
       ENTITY_CODE,
       ENTITY_NAME,
       CIRPRECNO,
       CUSTOMER_DEFINED_CODE,
       SERVICE_ORDER_REF,
       DNA,
       BILLING_CUSTOMER_CODE,
       ALPHA_CODE,
       USER_REPERTORY_NUMBER,
       ASCU_CODE,
       HOST_CODE,
       CNR,
       SERVICE_TYPE,
       DNIC,
       CARRIER_CIRCUIT_REFERENCE,
       CARRIER_CODE,
       PAID_ACCRUED,
       CIRCUIT_TYPE,
       CIRCUIT_USAGE,
       CIRCUIT_LENGTH,
       CIRCUIT_BANDWIDTH,                               <<<<== line 52
       CIRCUIT_BILL_END_DATE,
       CIRCUIT_BILL_START_DATE,
       CIRCUIT_DISCONNECTION_DATE,
       CIRCUIT_INSTALLATION_DATE,
       CUSTOMER_NAME,
       CENTER,
       ENTRY_POINT,
       SITE_OUT,
       CUSTOMER_ACCESS_RENT,
       CUSTOMER_ACCESS_RENT_USD,
       CUSTOMER_ACCESS_INSTALLATION,
       CUSTOMER_ACCESS_INSATLLATION_USD,
       CUSTOMER_ACCESS_BACKBILL,
       CUSTOMER_ACCESS_BACKBILL_USD,
       CUSTOMER_ACCESS_CONSUMPTION,
       CUSTOMER_ACCESS_CONSUMPTION_USD,
       CUSTOMER_ACCESS_DISCOUNTS,
       CUSTOMER_ACCESS_DISCOUNTS_USD,
       ACTIVITY_PERIOD,
       NATURE_OF_INSTALLATION,
       ACTIVITY_MONTH_OF_INSTALLATION,
       CUSTOMER_ACCESS_EXPEDITE_FEES,
       CUSTOMER_ACCESS_EXPEDITE_FEES_USD,
       CUSTOMER_ACCESS_PENALTIES,
       CUSTOMER_ACCESS_PENALTIES_USD,
       CHANNELIZED_ACCESS_RENT,
       CHANNELIZED_ACCESS_RENT_USD,
       CHANNELIZED_ACCESS_INSTALLATION,
       CHANNELIZED_ACCESS_INSTALLATION_USD,
       CHANNELIZED_ACCESS_PENALTIES,
       CHANNELIZED_ACCESS_PENALTIES_USD,
       IPL_INTL_PRIVATE_LINES,
       IPL_INTL_PRIVATE_LINES_USD,
       SATELITE_INTL_DEDICATED_LINE,
       SATELITE_INTL_DEDICATED_LINE_USD,
       CUSTOMER_ACCESS_DIAL,
       CUSTOMER_ACCESS_DIAL_USD,
       FIRST_SEEN_IN_CIRP,
       LAST_SEEN_IN_CIRP,
       MEMBER,
       CATNUM,
       CATEGORY,
       CURRENCY,
       CURRENCY_XRATE,
       XRATE_DATE,
       MRC_LCY,
       MRC_USD,
       USAGE_LCY,
       USAGE_USD,
       ADJ_LCY,
       ADJ_USD,
       TOTAL_LCY,
       TOTAL_USD,
       ACTIVITY_MONTH,
       NOTICE_PERIOD_IN_DAYS,
       AMT_NOTICE_PERIOD,
       AMTLC_NOTICE_PERIOD,
       INVOICE_NUMBER
    };
    
    #endif CIRP_ENUMERATION_H

    and this is the error

    $ make
    gcc -c cirp_process.c -I../lib -I../common
    In file included from cirp_process.c:48:
    cirp_enumeration.h:27: parse error before `80'
    cirp_enumeration.h:52: parse error before `18'
    cirp_process.c:1271: parse error before `}'
    make: *** [cirp_process.o] Error 1
    $


    I cannot see what is wrong !

    NOTE: 1271 is the end of the .C file and the comment lines have wrapped in the post !!


    tia,

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Code:
    >   COUNTRY, /* line 27 */
    >cirp_enumeration.h:27: parse error before `80'
    >   CIRCUIT_BANDWIDTH, /* line 52 */
    >cirp_enumeration.h:52: parse error before `18'
    Are the symbols COUNTRY and CIRCUIT_BANDWIDTH #defined elsewhere?
    Code:
    >#endif CIRP_ENUMERATION_H
    >cirp_process.c:1271: parse error before `}'
    Don't 'name' the #endif.
    Code:
    #endif /* CIRP_ENUMERATION_H */
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    93
    Don't 'name' the #endif.


    thanks Dave

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 05:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 12:07 PM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM

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