Wireshark-dev: Re: [Wireshark-dev] error encountered during compilation on windows

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Tue, 11 Feb 2014 13:39:20 +0100
Hi,

2014-02-11 8:41 GMT+01:00 Rahul Rohit <rahul.rohit@xxxxxxxxxxx>:

Hi,

During the build of wireshark  exe in windows machice(32 bit) we get the following errors.

 

epan\except.h(97) : error C2054: expected '(' to follow 'WS_MSVC_NORETURN'

epan\except.h(97) : error C2085: 'except_rethrow' : not in formal parameter list

epan\except.h(98) : error C2082: redefinition of formal parameter 'WS_MSVC_NORETURN'

epan\except.h(98) : error C2143: syntax error : missing ';' before 'type'

epan\except.h(98) : error C2085: 'except_throw' : not in formal parameter list

epan\except.h(99) : error C2082: redefinition of formal parameter 'WS_MSVC_NORETURN'

epan\except.h(99) : error C2143: syntax error : missing ';' before 'type'

epan\except.h(99) : error C2085: 'except_throwd' : not in formal parameter list

epan\except.h(100) : error C2082: redefinition of formal parameter 'WS_MSVC_NORETURN'

epan\except.h(100) : error C2143: syntax error : missing ';' before 'type'

epan\except.h(100) : error C2085: 'except_throwf' : not in formal parameter list.


WS_MSVC_NORETURN is supposed to be defined as:
#define WS_MSVC_NORETURN    __declspec(noreturn)
in the auto generated config.h file found at the root of your working copy.
Do you confirm you have it defined in your local copy?
Does it happen when you compile a specific file? If yes, do you have config.h included prior to except.h inclusion?

Best regards,
Pascal.