Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Compile Errors in DirectCsound & AXCsound?

Date1999-11-22 21:58
FromDaniel Lopez
SubjectRe: [Csnd] Compile Errors in DirectCsound & AXCsound?
I got similar errors when building DirectCsound, couldn't compile Midisend.c,
and though the error messages were slightly different, mentioning rpcasync.h
instead of your rpcnsip.h, it could be the same sort of thing.

In midisend.c there is a section which starts
/* This is to fool the include file! */
and proceeds with a load of defines. I commented out the one which said
#define _WINBASE_
and then everything was fine.

It seems these defines match the #ifndef statements at the top of Windows
headers to stop them being included. If it isn't that particular line on your
machine, try finding out which Windows header defines RPC_NS_HANDLE and then
comment out the appropriate #define for that file.

HTH

Daniel


Chris Graham wrote:
> 
> I'm trying to build AXCsound with Visual C++ 6.0, and I keep getting errors
> like the following:
> 
> Midisend.c
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(25) : error
> C2061: syntax error : identifier 'RPC_NS_HANDLE'
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(26) : error
> C2061: syntax error : identifier 'ProposedHandle'
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(26) : error
> C2059: syntax error : ';'
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(27) : error
> C2143: syntax error : missing '{' before '*'
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(29) : error
> C2059: syntax error : '}'
> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(34) : error
> C2061: syntax error : identifier 'RPC_ENTRY'
> 
> The same happens in Rtaudio.c.   Everything else compiles cleanly.
> 
> I'm compiling a freshly downloaded version of AXCsound using the included
> workspace, which opens cleanly.
> I also have tried building DirectCsound 3.0 using a workspace I constructed,
> but with the same result.
> 
> It's a syntax error deep in the Visual Studio libraries, so I'm not sure
> what the problem could be - possibly an incorrectly set compile-time option,
> but I can't find what it could be.
> 
> Anyone else experienced this, or have any suggestions?
> 
> Thanks.
> 
> - Chris Graham
> 
> --
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
--

Date1999-11-22 22:20
FromRich Weisgerber
SubjectRe: [Csnd] Compile Errors in DirectCsound & AXCsound?
I seem to remember Michael Gogins sent a note on this, but I did find this
message from jpff about it.
Maybe this hasn't made it over to DirectCsound yet?

Message written at 20 Aug 1999 10:52:12 +0100
--- Copy of mail to gogins@nyc.pipeline.com ---

Thanks for that.  i have added the line #define __RPCASYNC_H__ to my
sources (what does it do really?).  it is possible that i forgot to
update the .mdp file in the distribution.  I will take more care next
time.

==John ffitch



> -----Original Message-----
> From: Daniel Lopez [mailto:daniel@daisy.dircon.co.uk]
> Sent: Monday, November 22, 1999 1:58 PM
> To: Chris Graham
> Cc: csound@lists.bath.ac.uk
> Subject: Re: [Csnd] Compile Errors in DirectCsound & AXCsound?
>
>
> I got similar errors when building DirectCsound, couldn't compile
> Midisend.c,
> and though the error messages were slightly different, mentioning
> rpcasync.h
> instead of your rpcnsip.h, it could be the same sort of thing.
>
> In midisend.c there is a section which starts
> /* This is to fool the include file! */
> and proceeds with a load of defines. I commented out the one which said
> #define _WINBASE_
> and then everything was fine.
>
> It seems these defines match the #ifndef statements at the top of Windows
> headers to stop them being included. If it isn't that particular
> line on your
> machine, try finding out which Windows header defines
> RPC_NS_HANDLE and then
> comment out the appropriate #define for that file.
>
> HTH
>
> Daniel
>
>
> Chris Graham wrote:
> >
> > I'm trying to build AXCsound with Visual C++ 6.0, and I keep
> getting errors
> > like the following:
> >
> > Midisend.c
> > C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\rpcnsip.h(25) : error
> > C2061: syntax error : identifier 'RPC_NS_HANDLE'
> > C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\rpcnsip.h(26) : error
> > C2061: syntax error : identifier 'ProposedHandle'
> > C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\rpcnsip.h(26) : error
> > C2059: syntax error : ';'
> > C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\rpcnsip.h(27) : error
> > C2143: syntax error : missing '{' before '*'
> > C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\rpcnsip.h(29) : error
> > C2059: syntax error : '}'
> > C:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\rpcnsip.h(34) : error
> > C2061: syntax error : identifier 'RPC_ENTRY'
> >
> > The same happens in Rtaudio.c.   Everything else compiles cleanly.
> >
> > I'm compiling a freshly downloaded version of AXCsound using
> the included
> > workspace, which opens cleanly.
> > I also have tried building DirectCsound 3.0 using a workspace I
> constructed,
> > but with the same result.
> >
> > It's a syntax error deep in the Visual Studio libraries, so I'm not sure
> > what the problem could be - possibly an incorrectly set
> compile-time option,
> > but I can't find what it could be.
> >
> > Anyone else experienced this, or have any suggestions?
> >
> > Thanks.
> >
> > - Chris Graham
> >
> > --
> > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> --
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>

--