> Richard Levitte - VMS Whacker <[EMAIL PROTECTED]> ,in message <20000202220
>       [EMAIL PROTECTED]>, wrote: 
> 
> > I think the real problem is that an attempt is made to compile stack.c
> > as a C++ file, not a C one.  What should be done is to tell the
> > compiler that it shouldn't use C++ semantics...
> 
>   #include it within an extern "C" { } ?  I'm not sure if that's going to be
> effective.
> 
>   I guess it's just an error to try to compile C with a C++ compiler.  You
> don't try to compile pascal with a fortran compiler, eh?

The Visual C++ compiler does not compile a  .c file with C++ semantics
unless a special command line switch is thrown.  stack.c is being
compiled as a ANSI C program.  The compiler is correct.  

  void (*func)()

means

  void (*func)(void)

in ANSI C.

  func(foo);

calls func() with a single parameter which is one more parameter than
the function pointer is declared to accept.



    Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
                 The Kermit Project * Columbia University
              612 West 115th St #716 * New York, NY * 10025
  http://www.kermit-project.org/k95.html * [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to