| That'll work too! The way I usually do this is to go to
Project->Properties from the main menu. Then go to the C++ link and
choose Preprocessor. You can add any number of preprocessor
definitions there. Good luck with your work.
Rory.
On 12 July 2012 14:06, wrote:
> Thank Rory,
>
> it is working !
>
> (I can't fine an special place in Visual IDE
> for this specification so I put it as /D "USE_DOUBLE")
>
> ----- Mail original -----
> De: "Rory Walsh"
> À: csound@lists.bath.ac.uk
> Envoyé: Jeudi 12 Juillet 2012 12:01:25
> Objet: Re: [Csnd] opcode dll MS Visual Express float ?
>
> Hi Francois. Have you defined USE_DOUBLE in your project properties?
>
> On 12 July 2012 12:54, wrote:
>> Hello,
>>
>> It's an Faust .cpp generated file that I am compiling in an
>> opcode as .dll with MS Visual C++ 2010 Express (XP, sp3)
>>
>> Csound5.17.11 double sample return :
>>
>> WARNING: not loading 'monOpcode.dll' (uses incompatible floating point type)
>>
>> Should I need a special option for dll "double" Csound with MS Visual ?
>>
>>
>> // I thinck it's not an Faust mistake, Faust using MYFLT as csound ask,
>> // for example in :
>>
>> #include "csdl.h"
>> #define FAUSTFLOAT MYFLT
>>
>> ...
>>
>> virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) {
>> FAUSTFLOAT* input0 = input[0];
>> FAUSTFLOAT* input1 = input[1];
>> FAUSTFLOAT* output0 = output[0];
>> for (int i=0; i> output0[i] = (FAUSTFLOAT)((double)input0[i] + (double)input1[i]);
>> }
>> ...
>>
>> Thank !
>>
>> PS : perhaps it will be fine to have in csound manual about dll opcode
>> a mail of Victor Lazzarini :
>>
>> On OSX (floats):
>>
>> gcc -O3 -dynamiclib -o plugin.dylib plugin.c
>> -I/Library/Frameworks/CsoundLib.framework/Headers
>>
>> On OSX (doubles):
>>
>> gcc -O3 -dynamiclib -o plugin.dylib plugin.c -DUSE_DOUBLE
>> -I/Library/Frameworks/CsoundLib64.framework/Headers
>>
>> On Linux
>>
>> gcc -O3 -shared -o plugin.so plugin.c -I
>>
>> On Windows
>>
>> gcc -O3 -shared -o plugin.dll plugin.c -I
>>
>> [you'll also need sndfile.h, the libsndfile header in a standard location]
>>
>> Francois Roux
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
|