Csound Csound-dev Csound-tekno Search About

[Cs-dev] CppSound...

Date2008-02-21 11:09
From"Rory Walsh"
Subject[Cs-dev] CppSound...
I'm using the CppSound class in one of my applications. I don't want to
link to the csnd library, instead I prefer to simple add the relevant
sources to my project. I have it working so long as I comment out
setPythonMessageCallback() in the CppSound.hpp header file, otherwise I
get a
 undefined reference to `CppSound::setPythonMessageCallback()'
I'm just curious as to why I get this error, I'm building CsoundFile.pp,
csPerformanceThread.cpp and CsoundFile.cpp with my project, is there
another file I need to build in order to avoid this undefined reference? I
don't want to have to modify CppSound each time I do a new checkout of the
CVS sources. Cheers,

Rory.



-------------------------------------------------------------------------
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-02-21 11:35
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Cs-dev] CppSound...
AttachmentsNone  

Date2008-02-21 11:43
From"Rory Walsh"
SubjectRe: [Cs-dev] CppSound...
Yes;

#ifdef SWIG
  virtual void setPythonMessageCallback();
#endif

allows me to work with the CppSound without undefined errors. Would it
break anything if this check were add that to CppSound.hpp for future
releases?

Rory.




> #ifdef SWIG or something like that?
>
> Victor
> ----- Original Message -----
> From: Rory Walsh 
> Date: Thursday, February 21, 2008 11:24 am
> Subject: [Cs-dev] CppSound...
> To: csound-devel@lists.sourceforge.net
>
>> I'm using the CppSound class in one of my applications. I don't
>> want to
>> link to the csnd library, instead I prefer to simple add the relevant
>> sources to my project. I have it working so long as I comment out
>> setPythonMessageCallback() in the CppSound.hpp header file,
>> otherwise I
>> get a
>>  undefined reference to `CppSound::setPythonMessageCallback()'
>> I'm just curious as to why I get this error, I'm building
>> CsoundFile.pp,csPerformanceThread.cpp and CsoundFile.cpp with my
>> project, is there
>> another file I need to build in order to avoid this undefined
>> reference? I
>> don't want to have to modify CppSound each time I do a new
>> checkout of the
>> CVS sources. Cheers,
>>
>> Rory.
>>
>>
>>
>> -----------------------------------------------------------------
>> --------
>> 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
> 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-02-21 12:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] CppSound...
Not sure. Have to look into it.

Victor

At 11:43 21/02/2008, you wrote:
>Yes;
>
>#ifdef SWIG
>   virtual void setPythonMessageCallback();
>#endif
>
>allows me to work with the CppSound without undefined errors. Would it
>break anything if this check were add that to CppSound.hpp for future
>releases?
>
>Rory.
>
>
>
>
> > #ifdef SWIG or something like that?
> >
> > Victor
> > ----- Original Message -----
> > From: Rory Walsh 
> > Date: Thursday, February 21, 2008 11:24 am
> > Subject: [Cs-dev] CppSound...
> > To: csound-devel@lists.sourceforge.net
> >
> >> I'm using the CppSound class in one of my applications. I don't
> >> want to
> >> link to the csnd library, instead I prefer to simple add the relevant
> >> sources to my project. I have it working so long as I comment out
> >> setPythonMessageCallback() in the CppSound.hpp header file,
> >> otherwise I
> >> get a
> >>  undefined reference to `CppSound::setPythonMessageCallback()'
> >> I'm just curious as to why I get this error, I'm building
> >> CsoundFile.pp,csPerformanceThread.cpp and CsoundFile.cpp with my
> >> project, is there
> >> another file I need to build in order to avoid this undefined
> >> reference? I
> >> don't want to have to modify CppSound each time I do a new
> >> checkout of the
> >> CVS sources. Cheers,
> >>
> >> Rory.
> >>
> >>
> >>
> >> -----------------------------------------------------------------
> >> --------
> >> 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
> > 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
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


-------------------------------------------------------------------------
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