Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] cs_glue.hpp and CsoundOpcodeList(CSOUND* csound);

Date2008-03-02 15:22
FromMichael Gogins
SubjectRe: [Cs-dev] cs_glue.hpp and CsoundOpcodeList(CSOUND* csound);
I don't know about the redefinitions, but yes you can link with the Csound API in an MSVC project. If you have trouble with redefinitions (a) let me know ASAP and (b) in your own code, undefine and redefine what you need just before and after the preprocessor has a problem.

E.g.

#include 
#ifdef PROBLEMATIC_SYMBOL
#define BACKUP_FOR_PROBLEMATIC_SYMBOL
#undef PROBLEMATIC_SYMBOL
#endif
#include 
#ifdef BACKUP_FOR_PROBLEMATIC_SYMBOL
#define PROBLEMATIC_SYMBOL BACKUP_FOR_PROBLEMATIC_SYMBOL
#endif

Hope this helps,
Mike

-----Original Message-----
>From: Carsten Hoyer 
>Sent: Mar 2, 2008 10:02 AM
>To: csound-devel@lists.sourceforge.net
>Subject: Re: [Cs-dev] cs_glue.hpp and CsoundOpcodeList(CSOUND* csound);
>
>
>Just to understand this correctly. With the new VC++ build i should be able
>to use the csound in a wxWidgets project from within VC++?
>I remember last time Itried doing that I had some problems compiling because
>of some benign redefinitions of Uint_ptr and int_ptr - this shouldnt be a
>problem anymore?
>
>Carsten
>-- 
>View this message in context: http://www.nabble.com/cs_glue.hpp-and-CsoundOpcodeList%28CSOUND*-csound%29--tp15773100p15788848.html
>Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2008.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-02 22:31
FromCarsten Hoyer
SubjectRe: [Cs-dev] cs_glue.hpp and CsoundOpcodeList(CSOUND* csound);
Thank you for your answer. I will try something like your example code
tomorrow. Just came home from work and it´s a little late now. Anyway, I
thought i´d just post my build output:
As you can see i have some problem in sysdep.h

------ Build started: Project: wxWidgetsCsound, Configuration: Debug Win32
------
Compiling...
wxMainPanel.cpp
c:\program files\csound\include\sysdep.h(193) : error C2371: 'intptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(448)
: see declaration of 'intptr_t'
c:\program files\csound\include\sysdep.h(194) : error C2371: 'uintptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\vadefs.h(52) :
see declaration of 'uintptr_t'
wxMainApp.cpp
c:\program files\csound\include\sysdep.h(193) : error C2371: 'intptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(448)
: see declaration of 'intptr_t'
c:\program files\csound\include\sysdep.h(194) : error C2371: 'uintptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\vadefs.h(52) :
see declaration of 'uintptr_t'
treeCtrl.cpp
c:\program files\csound\include\sysdep.h(193) : error C2371: 'intptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(448)
: see declaration of 'intptr_t'
c:\program files\csound\include\sysdep.h(194) : error C2371: 'uintptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\vadefs.h(52) :
see declaration of 'uintptr_t'
csoundImp.cpp
c:\program files\csound\include\sysdep.h(193) : error C2371: 'intptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(448)
: see declaration of 'intptr_t'
c:\program files\csound\include\sysdep.h(194) : error C2371: 'uintptr_t' :
redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\include\vadefs.h(52) :
see declaration of 'uintptr_t'
Generating Code...
Build log was saved at "file://c:\Documents and Settings\carsten\My
Documents\Visual Studio
2005\Projects\wxWidgetsCsound\wxWidgetsCsound\Debug\BuildLog.htm"
wxWidgetsCsound - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

-- 
View this message in context: http://www.nabble.com/cs_glue.hpp-and-CsoundOpcodeList%28CSOUND*-csound%29--tp15773100p15794345.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cso

Date2008-03-03 10:55
FromCarsten Hoyer
SubjectRe: [Cs-dev] cs_glue.hpp and CsoundOpcodeList(CSOUND* csound);
Well. I tried following your example code but it´s not working. I must be
doing something wrong.
This whole define/undefine stuff, I have been trying to stear free of it.
Maybe you could fill in your example code with the needed symbols. Then i
would learn what needs to be done for later reference :D

Carsten
-- 
View this message in context: http://www.nabble.com/cs_glue.hpp-and-CsoundOpcodeList%28CSOUND*-csound%29--tp15773100p15799953.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
http