Error during compilation.

This is a discussion on Error during compilation. within the C++ Programming forums, part of the General Programming Boards category; Hi: I am using Visual Studio 2010, I am getting an error while compiling the following header file. Code: bool ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    14

    Error during compilation.

    Hi:

    I am using Visual Studio 2010, I am getting an error while compiling the following header file.

    Code:
    bool normalize_exponent(limeq_price* set, size_t nmemb, int8_t* min_exponent);
    Code:
    bool decode_siac_sales_conditions(uint8_t siac_sales_conditions, uint8_t additionalProperties, char sales_conditions[SIAC_SALES_CONDITIONS_LEN]);
    I am getting the following error during compilation.

    common_util.h(198): error C2061: syntax error : identifier 'normalize_exponent'
    common_util.h(198): error C2059: syntax error : ';'
    common_util.h(198): error C2059: syntax error : 'type'
    common_util.h(206): error C2061: syntax error : identifier 'decode_siac_sales_conditions'
    common_util.h(206): error C2059: syntax error : ';'
    common_util.h(206): error C2059: syntax error : 'type'
    I would really appreciate if someone can help me.

    Regards
    Arup

  2. #2
    C lover
    Join Date
    Oct 2007
    Location
    Virginia
    Posts
    265
    Are those prototypes? If that is the functions definition then you have to get rid of those semicolons at the ends.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    14
    Hi Syscal, thanks for your reply, this is a vendor code that I have to integrate in my c++ project. I have uploaded both the header and c file for your reference.

    regards
    Arup
    Attached Files Attached Files

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    I think your C file needs to include stdint.h to get declarations for int8_t etc.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compilation Problem w/ CR/LFs in Translated char strings
    By joeprogrammer1 in forum C Programming
    Replies: 1
    Last Post: 09-02-2009, 01:32 PM
  2. all about cross compilation
    By munna_dude in forum Linux Programming
    Replies: 1
    Last Post: 08-27-2008, 04:15 AM
  3. PC RAM in Compilation
    By SlyMaelstrom in forum Tech Board
    Replies: 5
    Last Post: 05-21-2006, 06:03 AM
  4. Compilation units
    By filler_bunny in forum C++ Programming
    Replies: 0
    Last Post: 10-21-2003, 03:57 AM
  5. MS VC++ Crash on compilation
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 08-23-2003, 07:06 PM

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