Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#349 DirectMusic gcc Issues

OTHER
closed
Danny Smith
gcc (462)
fixed
Known_bugs
2013-01-24
2003-05-11
Martin Pollard
No

Following the Direct Music tutorial on MSDN I made a
file with this in the header:

#define INITGUID
#include <dmusici.h>

This had some missing definitions so I added:
#include <basetyps.h>
#include <wtypes.h>
#include <unknwn.h>
#include <oaidl.h>
But that's another bug and another story. Anyway, that
fixed that however I was still left with one lingering bug.
The struct DMUS_REGION has a member that is a
struct of type WLOOP called WLOOP[1]. G++ doesn't
like this, fact it doesn't like any:

struct A {};
struct B {
A A;
};

I reckon this is an upstream bug and may even possibly
be fixed in gcc 3.4 but I'm unsure that it's even a bug
and don't have a copy of 3.4 to test with. I also don't
have access to a copy of the ISO standard so sadly I
can't check that.

While I could just fix it by changing the header file but
this breaks API compat so I'd rather not.

I'm using the latest release of MinGW gcc (gcc 3.2.3)

Discussion

  • Danny Smith
    Danny Smith
    2003-05-11

    Logged In: YES
    user_id=11494

    It is fixed in gcc trunk (3.4) but not in gcc 3.3. Why
    won't this modification work in the meantime?

    struct A {};
    struct B {
    struct A A;
    };

    Danny

     
  • Martin Pollard
    Martin Pollard
    2003-05-25

    Logged In: YES
    user_id=59163

    Yes thanks for the workaround, I didn't think of that.

     
  • Earnie Boyd
    Earnie Boyd
    2003-08-20

    • assigned_to: earnie --> dannysmith
    • status: open --> closed-later
     
  • Earnie Boyd
    Earnie Boyd
    2013-01-24

    • labels: MinGW --> gcc
    • status: closed-later --> closed
    • resolution: --> fixed
    • category: --> Known_bugs
    • milestone: --> OTHER