Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#222 Build error with newer compilers

v2.6x
closed
Ian Brabham
None
4
2013-09-25
2013-09-09
Groucho2004
No

In main.cpp, CAVIStreamSynth::ReadFormat - Newer compilers have "KSDATAFORMAT_SUBTYPE_PCM" and "KSDATAFORMAT_SUBTYPE_IEEE_FLOAT" already defined. Putting these in conditional blocks would avoid build errors.

Discussion

  • Ian Brabham
    Ian Brabham
    2013-09-25

    • status: open --> closed
    • assigned_to: Ian Brabham
     
  • Ian Brabham
    Ian Brabham
    2013-09-25

    Main.cpp defines "KSDATAFORMAT_SUBTYPE_PCM" and "KSDATAFORMAT_SUBTYPE_IEEE_FLOAT" as 2 local scope variables of type "const GUID".

    But ksmedia.h #defines them as :-

    #define KSDATAFORMAT_SUBTYPE_PCM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_PCM)
    #define KSDATAFORMAT_SUBTYPE_IEEE_FLOAT DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_IEEE_FLOAT)
    

    so I can see how this would cause problems. I will wrap them in #ifdef's