home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsstand.cit.cornell.edu!vax5.cit.cornell.edu!rdw
- From: rdw@vax5.cit.cornell.edu
- Newsgroups: comp.lang.c
- Subject: Error in MS C 6.0 ?
- Message-ID: <1992Jul21.175215.13891@vax5.cit.cornell.edu>
- Date: 21 Jul 92 17:52:15 EDT
- Distribution: comp
- Organization: Cornell University
- Lines: 36
-
- Dear Microsoft 6.0 C programmers:
-
- Has anybody noticed a possible error in the Microsoft C 6.0 compiler in
- the way it handles function prototyping? When passing single-precision float
- arguments to a function, I get compilation errors when I try to use the
- following together:
- prototyping in the function allusion but 'old-style' argument declarations when
- defining the function.
-
- For example:
-
- extern int func( int a, float x, int b);
-
- with
- The prototyping works fine when I declare the arguments with the new method:
- int func( a, x, b )
- int a, b;
- float x;
- {
-
-
-
- int func( int a, float x, int b )
- {
-
- If I use the old method, the compiler gives me a Parameter 2 mismatch error.
- Does anybody know what's going on?
-
- Baffled,
-
- Aaron S. Chou
- Cornell University
-
-
-
-
-