From: Earnie B. <ear...@ya...> - 2002-06-22 15:00:57
|
The pieces are not designed to be included by themselves. MS states that you shouldn't include the pieces, but rather include windows.h. Earnie. --- Luke Dunstan <cod...@ho...> wrote: > > You need to #include <windows.h> before including mmsystem.h. In fact, Mingw > windows.h includes mmsystem.h, so you don't need to include mmsystem.h > yourself at all. If someone can check whether this is different to MSVC, we > can change mmsystem.h to automatically include windows.h (or something). > > Luke > > ----- Original Message ----- > From: "null desu" <nul...@te...> > To: <min...@li...> > Sent: Saturday, June 22, 2002 10:56 AM > Subject: [Mingw-users] mingw choking on mmsystem.h > > > > Yello, > > Just got mingw recently but have come > > across a wierd compile error > > I made just a simple loop calling and > > printing timeGetTime() > > Anywho, when push comes to shove, running > > g++ s9k.cpp decides to yell at me: > > > > I:\zcpptest>gcc s9k.cpp > > In file included from s9k.cpp:77: > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 896: > > syntax error before `;' > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 897: > > syntax error before `;' > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 898: > > `CALLBACK' was not declared in this scope > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 898: > > `YIELDPROC' was not declared in this scope > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 898: > > `MCIDEVICEID' was not declared in this scope > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 898: > > `DWORD' was not declared in this scope > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 898: > > typedef declaration includes an initializer > > > D:/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../../include/mmsystem.h: > 898: > > confused by earlier errors, bailing out > > > > Any help is appreciated ^n_n^ > > > > On the bounce! > > -zer0 > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users ===== Earnie Boyd mailto:ear...@ya... --- <http://earniesystems.safeshopper.com> --- --- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> --- --- Minimalist GNU for Windows <http://www.mingw.org/> --- __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |