jaltman> The Visual C++ compiler does not compile a .c file with C++ semantics jaltman> unless a special command line switch is thrown. stack.c is being jaltman> compiled as a ANSI C program. The compiler is correct. jaltman> jaltman> void (*func)() jaltman> jaltman> means jaltman> jaltman> void (*func)(void) jaltman> jaltman> in ANSI C. Hmm? I thought the standard was a little more forgiving on this particular issue. Oh well, I guess that means we need to use another evil cast... 'cause there's at least one compiler that will complain if it sees a `void (*func)(...)'... -- Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED] Redakteur@Stacken \ S-161 43 BROMMA \ T: +46-8-26 52 47 \ SWEDEN \ or +46-708-26 53 44 Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: error C2197: 'void (__cdecl *)(void)' : too many actual parameters: problems compile the following code using ms visual c v6
Richard Levitte - VMS Whacker Thu, 3 Feb 2000 00:33:00 -0800
- Re: error C2197: 'void (__cdecl *)(void)' : ... Jeffrey Altman
- Re: error C2197: 'void (__cdecl *)(void... EKR
- Re: error C2197: 'void (__cdecl *)(void... Richard Levitte - VMS Whacker
- Re: error C2197: 'void (__cdecl *)(void... Ben Laurie
- Re: error C2197: 'void (__cdecl *)(... Dr Stephen Henson