Hi all,
I forgot to tell you which line this happen on
This error occurs in the line func(st->data[i]);
Thanks
Robert Fernando
Mobile +44-(0)797-097-4050
Fax +44-(0)870-133-1992
-----Original Message-----
From: Robert Fernando <[EMAIL PROTECTED]>
To: Shaun Tantony <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: 02 February 2000 15:53
Subject: error C2197: 'void (__cdecl *)(void)' : too many actual parameters:
problems compile the following code using ms visual c v6
>Hi all,
>
>when I try and compile code with the following function
>
>void sk_pop_free(STACK *st, void (*func)())
> {
> int i;
>
> if (st == NULL) return;
> for (i=0; i<st->num; i++)
> if (st->data[i] != NULL)
> func(st->data[i]);
> sk_free(st);
> }
>
>I get the following response form visual c ++ version 6 compiller.
>
>error C2197: 'void (__cdecl *)(void)' : too many actual parameters
>
>How can I correct this to get it to compile.
>
>My Compiler settings are
>
>/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS"
>/Fp"Release/pkcs5v2.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c
>
>Thanks
>
>Robert Fernando
>Mobile +44-(0)797-097-4050
>Fax +44-(0)870-133-1992
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]