I just installed Pelles C and I'm compiling a C dll on Windows 7. Using Pelles IDE, I selected the default Windows DLL project option. Here are the default command line options:
-std:C11 -Tx64-coff -Ot -Ob1 -fp:precise -W1 -Gd -Ze
When I compile this project, I get the following long list of errors from mmreg.h, which is an include file from the Pelles install. Since this include file is supplied, I don't know why I get these errors. They all appear to be related to the header file itself.
Building C_DLL_Code.obj.
C:\Program Files\PellesC\Include\Win\mmreg.h(1915): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(1915): error #2001: Syntax error: expected '}' but found 'WORD'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1915): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1916): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1916): error #2001: Syntax error: expected ';' but found 'nChannels'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1916): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1917): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1917): error #2001: Syntax error: expected ';' but found 'nSamplesPerSec'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1917): error #2048: Undeclared identifier 'nSamplesPerSec' (did you mean 'wrapperfunc'?).
C:\Program Files\PellesC\Include\Win\mmreg.h(1917): error #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1918): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1918): error #2001: Syntax error: expected ';' but found 'nAvgBytesPerSec'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1918): error #2048: Undeclared identifier 'nAvgBytesPerSec' (did you mean '_PyBytesWriter'?).
C:\Program Files\PellesC\Include\Win\mmreg.h(1918): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1919): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1919): error #2001: Syntax error: expected ';' but found 'nBlockAlign'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1919): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1920): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1920): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1923): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(1923): error #2001: Syntax error: expected '}' but found 'WAVEFORMAT'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1923): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1924): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1924): error #2001: Syntax error: expected ';' but found 'wBitsPerSample'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1924): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1925): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1925): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1932): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(1932): error #2001: Syntax error: expected '}' but found 'WORD'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1932): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1933): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1933): error #2001: Syntax error: expected ';' but found 'nChannels'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1933): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1934): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1934): error #2001: Syntax error: expected ';' but found 'nSamplesPerSec'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1934): error #2048: Undeclared identifier 'nSamplesPerSec' (did you mean 'wrapperfunc'?).
C:\Program Files\PellesC\Include\Win\mmreg.h(1934): error #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1935): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1935): error #2001: Syntax error: expected ';' but found 'nAvgBytesPerSec'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1935): error #2048: Undeclared identifier 'nAvgBytesPerSec' (did you mean '_PyBytesWriter'?).
C:\Program Files\PellesC\Include\Win\mmreg.h(1935): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1936): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1936): error #2001: Syntax error: expected ';' but found 'nBlockAlign'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1936): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1937): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1937): error #2001: Syntax error: expected ';' but found 'wBitsPerSample'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1937): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1938): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1938): error #2001: Syntax error: expected ';' but found 'cbSize'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1938): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(1939): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(1939): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2002): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2002): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2002): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2003): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2003): error #2001: Syntax error: expected ';' but found 'wSamplesPerBlock'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2003): error #2048: Undeclared identifier 'wSamplesPerBlock' (did you mean 'wrapperfunc'?).
C:\Program Files\PellesC\Include\Win\mmreg.h(2003): error #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2004): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2004): error #2001: Syntax error: expected ';' but found 'wNumCoef'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2004): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2010): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2010): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2013): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2013): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2013): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2014): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2014): error #2001: Syntax error: expected ';' but found 'wSamplesPerBlock'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2014): error #2048: Undeclared identifier 'wSamplesPerBlock' (did you mean 'wrapperfunc'?).
C:\Program Files\PellesC\Include\Win\mmreg.h(2014): error #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2015): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2015): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2018): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2018): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2018): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2019): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2019): error #2001: Syntax error: expected ';' but found 'wSamplesPerBlock'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2019): error #2048: Undeclared identifier 'wSamplesPerBlock' (did you mean 'wrapperfunc'?).
C:\Program Files\PellesC\Include\Win\mmreg.h(2019): error #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2020): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2020): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2023): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2023): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2023): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2024): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2024): error #2001: Syntax error: expected ';' but found 'wRevision'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2024): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2025): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2025): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2028): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2028): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2028): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2029): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2029): error #2001: Syntax error: expected ';' but found 'wRevision'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2029): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2030): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2030): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2033): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2033): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2033): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2034): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2034): error #2001: Syntax error: expected ';' but found 'cbExtraSize'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2034): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2035): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2035): error #2001: Syntax error: expected ';' but found 'nAuxBlockSize'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2035): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2036): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2036): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2039): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2039): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2039): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2040): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2040): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2043): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2043): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2043): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2044): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2044): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2047): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2047): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2047): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2048): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2048): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2051): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2051): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2051): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2052): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2052): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2055): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2055): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2055): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2056): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2056): error #2001: Syntax error: expected ';' but found 'wCompType'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2056): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2057): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2057): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2060): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\mmreg.h(2060): error #2001: Syntax error: expected '}' but found 'WAVEFORMATEX'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2060): warning #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\mmreg.h(2061): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2061): error #2001: Syntax error: expected ';' but found 'wRevision'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2061): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2062): warning #2099: Missing type specifier; assuming 'int'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2062): error #2001: Syntax error: expected ';' but found 'nSamplesPerBlock'.
C:\Program Files\PellesC\Include\Win\mmreg.h(2062): warning #2099: Missing type specifier; assuming 'int'.
If you are compiling a Windows program, make sure you use the /Ze option!
*** Error code: 1 ***
Done.
The actual list is longer than that but the forum won't let me post the whole list.
At the end it says to use the /Ze option, but that's part of the default compiler string shown above.
My source code does not include mmreg.h and it has nothing to do with building a multimedia device.
Thanks for any help on this.