Re: error: expected ')' before '*' token -- What is this ?



Ram Prasad wrote:

On Jul 31, 5:25 pm, Eric Sosman <esos...@xxxxxxxxxxxxxxxxxxxx> wrote:
Ram Prasad wrote:
Post all the code in that file and then "line 42" will be in context.
It isn't even apparent from above what IS on line 42. "----"? ". . .
"? or SPF_ ?

The file is here
[...]
SPF_result_t spfcheck_s(SPF_request_t *ecm_spf_request, char* ip,
char* helo, char* sender) {

Just a guess: Does the header file (which you didn't show)
declare a type named `SPF_request_t', or does it declare something
slightly different like `SPF_Request_t' or `SPF_request'? (Or
does it declare `struct SPF_request_t' but not `SPF_request_t'?)


I am not much of a cprogrammer myself , ( been doing perl all this
while) But I am willing to improve

Here you go, this is my mdef.h sorry for not posting all src code in
first place. The spf header files come from standard libspf2-devel rpm

<snip header>

We still need the definitions for all the SPF_*_t types, particularly,
SPF_result_t and SPF_request_t.

.



Relevant Pages

  • Re: error: expected ) before * token -- What is this ?
    ... char* helo, char* sender) { ... Does the header file ... declare a type named `SPF_request_t', ...
    (comp.lang.c)
  • Call C function from C# problem EntryPointNotFoundException
    ... I dont know how to declare the external funtion: ... The function in the header file return a enum. ... char * username, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Call C function from C# problem EntryPointNotFoundException
    ... I dont know how to declare the external funtion: ... The function in the header file return a enum. ... char * username, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Exported function mangaled name
    ... that header file; it must be declared as __declspec ... You have to declare the function the same way in your .cpp file as in ... #define LIBSPEC __declspec ... See my essay on The Ultimate DLL Header File on my MVP Tips site. ...
    (microsoft.public.vc.mfc)
  • Re: make general windows module
    ... The VB version of these declarations is the "Declare Statement". ... mimicing the behavior of a "windows.h" header file for VB. ... not all Windows API calls can be called from VB as some use reference ...
    (microsoft.public.vb.general.discussion)