Csound Csound-dev Csound-tekno Search About

[Csnd] Opcode Plugin in Windows 10 x64

Date2019-05-30 03:24
Frompablozoani
Subject[Csnd] Opcode Plugin in Windows 10 x64
Hello, i am new in this subject, i am trying this example:

http://write.flossmanuals.net/csound/extending-csound/

when i get the .dll file i paste it in:

"C:\Program Files\Csound6_x64\plugins64\"

when i try to use it in csound the following message appears in the console:

WARNING: could not open library 'C:/Program
Files/Csound6_x64/plugins64\newopcode.dll' (-1)
WARNING: could not open library 'C:/Program
Files/Csound6_x64/plugins64\py.dll' (-1)

is this working on windows 10? i am using csound 6.12.




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-05-30 06:56
FromVictor Lazzarini
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
there should be no difference between platforms. If it works elsewhere, it should work on Windows.

There are examples here as well


you can try them

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 May 2019, at 03:24, pablozoani <pablozoani@hotmail.com> wrote:

Hello, i am new in this subject, i am trying this example:

http://write.flossmanuals.net/csound/extending-csound/

when i get the .dll file i paste it in:

"C:\Program Files\Csound6_x64\plugins64\"

when i try to use it in csound the following message appears in the console:

WARNING: could not open library 'C:/Program
Files/Csound6_x64/plugins64\newopcode.dll' (-1)
WARNING: could not open library 'C:/Program
Files/Csound6_x64/plugins64\py.dll' (-1)

is this working on windows 10? i am using csound 6.12.




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-05-30 08:54
FromPablo Zoani Heffele
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
Hello Victor. I must be doing something wrong.

1) I have compiled mult.c (without modifying the code) in windows terminal with this command:

gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"

2) I pasted the mult.dll in "C:\Program FIles\Csound6_x64\plugins64"

3) I have opened the mult.csd file in CsoundQt with opcodedir = C:/Program Files/Csound6_x64/plugins64.

The result is the same, could not open library [...]\mult.dll (-1)

i have gcc (MinGW.org GCC-6.3.0-1) 6.3.0 and Precompiled Csound 6.12

Regards




De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
Enviado: miércoles, 29 de mayo de 2019 22:56
Para: CSOUND@LISTSERV.HEANET.IE
Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
there should be no difference between platforms. If it works elsewhere, it should work on Windows.

There are examples here as well


you can try them

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 May 2019, at 03:24, pablozoani <pablozoani@hotmail.com> wrote:

Hello, i am new in this subject, i am trying this example:

http://write.flossmanuals.net/csound/extending-csound/

when i get the .dll file i paste it in:

"C:\Program Files\Csound6_x64\plugins64\"

when i try to use it in csound the following message appears in the console:

WARNING: could not open library 'C:/Program
Files/Csound6_x64/plugins64\newopcode.dll' (-1)
WARNING: could not open library 'C:/Program
Files/Csound6_x64/plugins64\py.dll' (-1)

is this working on windows 10? i am using csound 6.12.




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-05-30 09:43
FromVictor Lazzarini
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
Maybe it’s because you are compiling with MinGW and Csound is built with Visual Studio. I guess someone working on
Windows might be able to help.

You could try the C++ example as well and see if it’s the same thing.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 30 May 2019, at 08:54, Pablo Zoani Heffele  wrote:
> 
> Hello Victor. I must be doing something wrong.
> 
> 1) I have compiled mult.c (without modifying the code) in windows terminal with this command:
> 
> gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"
> 
> 2) I pasted the mult.dll in "C:\Program FIles\Csound6_x64\plugins64"
> 
> 3) I have opened the mult.csd file in CsoundQt with opcodedir = C:/Program Files/Csound6_x64/plugins64.
> 
> The result is the same, could not open library [...]\mult.dll (-1)
> 
> i have gcc (MinGW.org GCC-6.3.0-1) 6.3.0 and Precompiled Csound 6.12
> 
> Regards
> 
> 
> 
> De: A discussion list for users of Csound  en nombre de Victor Lazzarini 
> Enviado: miércoles, 29 de mayo de 2019 22:56
> Para: CSOUND@LISTSERV.HEANET.IE
> Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
>  
> there should be no difference between platforms. If it works elsewhere, it should work on Windows.
> 
> There are examples here as well
> 
> https://github.com/csound/opcode_sdk
> 
> you can try them
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
> On 30 May 2019, at 03:24, pablozoani  wrote:
> 
>> Hello, i am new in this subject, i am trying this example:
>> 
>> http://write.flossmanuals.net/csound/extending-csound/
>> 
>> when i get the .dll file i paste it in:
>> 
>> "C:\Program Files\Csound6_x64\plugins64\"
>> 
>> when i try to use it in csound the following message appears in the console:
>> 
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\newopcode.dll' (-1)
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\py.dll' (-1)
>> 
>> is this working on windows 10? i am using csound 6.12.
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-05-30 12:52
FromPablo Zoani Heffele
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
I have tried the C++ option, changing:

gcc to g++

mult.c to mult.cpp

the output of the csound's console is the same.

now im trying the vs option. looking for the equivalent for this in vs at the moment:

gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"

regards

De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
Enviado: jueves, 30 de mayo de 2019 1:43
Para: CSOUND@LISTSERV.HEANET.IE
Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
Maybe it’s because you are compiling with MinGW and Csound is built with Visual Studio. I guess someone working on
Windows might be able to help.

You could try the C++ example as well and see if it’s the same thing.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 30 May 2019, at 08:54, Pablo Zoani Heffele <pablozoani@HOTMAIL.COM> wrote:
>
> Hello Victor. I must be doing something wrong.
>
> 1) I have compiled mult.c (without modifying the code) in windows terminal with this command:
>
> gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"
>
> 2) I pasted the mult.dll in "C:\Program FIles\Csound6_x64\plugins64"
>
> 3) I have opened the mult.csd file in CsoundQt with opcodedir = C:/Program Files/Csound6_x64/plugins64.
>
> The result is the same, could not open library [...]\mult.dll (-1)
>
> i have gcc (MinGW.org GCC-6.3.0-1) 6.3.0 and Precompiled Csound 6.12
>
> Regards
>
>
>
> De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
> Enviado: miércoles, 29 de mayo de 2019 22:56
> Para: CSOUND@LISTSERV.HEANET.IE
> Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64

> there should be no difference between platforms. If it works elsewhere, it should work on Windows.
>
> There are examples here as well
>
> https://github.com/csound/opcode_sdk
>
> you can try them
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 30 May 2019, at 03:24, pablozoani <pablozoani@hotmail.com> wrote:
>
>> Hello, i am new in this subject, i am trying this example:
>>
>> http://write.flossmanuals.net/csound/extending-csound/
>>
>> when i get the .dll file i paste it in:
>>
>> "C:\Program Files\Csound6_x64\plugins64\"
>>
>> when i try to use it in csound the following message appears in the console:
>>
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\newopcode.dll' (-1)
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\py.dll' (-1)
>>
>> is this working on windows 10? i am using csound 6.12.
>>
>>
>>
>>
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-05-30 13:06
FromVictor Lazzarini
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
if you cmake, you can generate a VS project as a target.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 May 2019, at t 12:52, Pablo Zoani Heffele <pablozoani@hotmail.com> wrote:

I have tried the C++ option, changing:

gcc to g++

mult.c to mult.cpp

the output of the csound's console is the same.

now im trying the vs option. looking for the equivalent for this in vs at the moment:

gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"

regards

De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
Enviado: jueves, 30 de mayo de 2019 1:43
Para: CSOUND@LISTSERV.HEANET.IE
Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
Maybe it’s because you are compiling with MinGW and Csound is built with Visual Studio. I guess someone working on
Windows might be able to help.

You could try the C++ example as well and see if it’s the same thing.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 30 May 2019, at 08:54, Pablo Zoani Heffele <pablozoani@HOTMAIL.COM> wrote:
>
> Hello Victor. I must be doing something wrong.
>
> 1) I have compiled mult.c (without modifying the code) in windows terminal with this command:
>
> gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"
>
> 2) I pasted the mult.dll in "C:\Program FIles\Csound6_x64\plugins64"
>
> 3) I have opened the mult.csd file in CsoundQt with opcodedir = C:/Program Files/Csound6_x64/plugins64.
>
> The result is the same, could not open library [...]\mult.dll (-1)
>
> i have gcc (MinGW.org GCC-6.3.0-1) 6.3.0 and Precompiled Csound 6.12
>
> Regards
>
>
>
> De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
> Enviado: miércoles, 29 de mayo de 2019 22:56
> Para: CSOUND@LISTSERV.HEANET.IE
> Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64

> there should be no difference between platforms. If it works elsewhere, it should work on Windows.
>
> There are examples here as well
>
> https://github.com/csound/opcode_sdk
>
> you can try them
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 30 May 2019, at 03:24, pablozoani <pablozoani@hotmail.com> wrote:
>
>> Hello, i am new in this subject, i am trying this example:
>>
>> http://write.flossmanuals.net/csound/extending-csound/
>>
>> when i get the .dll file i paste it in:
>>
>> "C:\Program Files\Csound6_x64\plugins64\"
>>
>> when i try to use it in csound the following message appears in the console:
>>
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\newopcode.dll' (-1)
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\py.dll' (-1)
>>
>> is this working on windows 10? i am using csound 6.12.
>>
>>
>>
>>
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-05-30 17:24
FromPablo Zoani Heffele
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
Alright, i will keep try by that way when return home. Hehe. I'll let you know if i succeed

PZH


From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Victor Lazzarini <Victor.Lazzarini@MU.IE>
Sent: Thursday, May 30, 2019 9:06:20 AM
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
if you cmake, you can generate a VS project as a target.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 May 2019, at t 12:52, Pablo Zoani Heffele <pablozoani@hotmail.com> wrote:

I have tried the C++ option, changing:

gcc to g++

mult.c to mult.cpp

the output of the csound's console is the same.

now im trying the vs option. looking for the equivalent for this in vs at the moment:

gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"

regards

De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
Enviado: jueves, 30 de mayo de 2019 1:43
Para: CSOUND@LISTSERV.HEANET.IE
Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
Maybe it’s because you are compiling with MinGW and Csound is built with Visual Studio. I guess someone working on
Windows might be able to help.

You could try the C++ example as well and see if it’s the same thing.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 30 May 2019, at 08:54, Pablo Zoani Heffele <pablozoani@HOTMAIL.COM> wrote:
>
> Hello Victor. I must be doing something wrong.
>
> 1) I have compiled mult.c (without modifying the code) in windows terminal with this command:
>
> gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"
>
> 2) I pasted the mult.dll in "C:\Program FIles\Csound6_x64\plugins64"
>
> 3) I have opened the mult.csd file in CsoundQt with opcodedir = C:/Program Files/Csound6_x64/plugins64.
>
> The result is the same, could not open library [...]\mult.dll (-1)
>
> i have gcc (MinGW.org GCC-6.3.0-1) 6.3.0 and Precompiled Csound 6.12
>
> Regards
>
>
>
> De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
> Enviado: miércoles, 29 de mayo de 2019 22:56
> Para: CSOUND@LISTSERV.HEANET.IE
> Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64

> there should be no difference between platforms. If it works elsewhere, it should work on Windows.
>
> There are examples here as well
>
> https://github.com/csound/opcode_sdk
>
> you can try them
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 30 May 2019, at 03:24, pablozoani <pablozoani@hotmail.com> wrote:
>
>> Hello, i am new in this subject, i am trying this example:
>>
>> http://write.flossmanuals.net/csound/extending-csound/
>>
>> when i get the .dll file i paste it in:
>>
>> "C:\Program Files\Csound6_x64\plugins64\"
>>
>> when i try to use it in csound the following message appears in the console:
>>
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\newopcode.dll' (-1)
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\py.dll' (-1)
>>
>> is this working on windows 10? i am using csound 6.12.
>>
>>
>>
>>
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-05-30 17:51
FromOscar Pablo Di Liscia
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
Hello Pablo:
Are you sure that the target of the compiler you are using is a 64 bits binary? If it is not,  a 64 bits version of Csound, it will not host the plugin. Maybe that's the problem.
Could you do in your windows prompt: gcc -v 
And see which the target is?
Best

El jueves, 30 de mayo de 2019, Pablo Zoani Heffele <pablozoani@hotmail.com> escribió:
Alright, i will keep try by that way when return home. Hehe. I'll let you know if i succeed

PZH


From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Victor Lazzarini <Victor.Lazzarini@MU.IE>
Sent: Thursday, May 30, 2019 9:06:20 AM
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
if you cmake, you can generate a VS project as a target.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 May 2019, at t 12:52, Pablo Zoani Heffele <pablozoani@hotmail.com> wrote:

I have tried the C++ option, changing:

gcc to g++

mult.c to mult.cpp

the output of the csound's console is the same.

now im trying the vs option. looking for the equivalent for this in vs at the moment:

gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"

regards

De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
Enviado: jueves, 30 de mayo de 2019 1:43
Para: CSOUND@LISTSERV.HEANET.IE
Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
Maybe it’s because you are compiling with MinGW and Csound is built with Visual Studio. I guess someone working on
Windows might be able to help.

You could try the C++ example as well and see if it’s the same thing.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 30 May 2019, at 08:54, Pablo Zoani Heffele <pablozoani@HOTMAIL.COM> wrote:
>
> Hello Victor. I must be doing something wrong.
>
> 1) I have compiled mult.c (without modifying the code) in windows terminal with this command:
>
> gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"
>
> 2) I pasted the mult.dll in "C:\Program FIles\Csound6_x64\plugins64"
>
> 3) I have opened the mult.csd file in CsoundQt with opcodedir = C:/Program Files/Csound6_x64/plugins64.
>
> The result is the same, could not open library [...]\mult.dll (-1)
>
> i have gcc (MinGW.org GCC-6.3.0-1) 6.3.0 and Precompiled Csound 6.12
>
> Regards
>
>
>
> De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
> Enviado: miércoles, 29 de mayo de 2019 22:56
> Para: CSOUND@LISTSERV.HEANET.IE
> Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64

> there should be no difference between platforms. If it works elsewhere, it should work on Windows.
>
> There are examples here as well
>
> https://github.com/csound/opcode_sdk
>
> you can try them
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 30 May 2019, at 03:24, pablozoani <pablozoani@hotmail.com> wrote:
>
>> Hello, i am new in this subject, i am trying this example:
>>
>> http://write.flossmanuals.net/csound/extending-csound/
>>
>> when i get the .dll file i paste it in:
>>
>> "C:\Program Files\Csound6_x64\plugins64\"
>>
>> when i try to use it in csound the following message appears in the console:
>>
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\newopcode.dll' (-1)
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\py.dll' (-1)
>>
>> is this working on windows 10? i am using csound 6.12.
>>
>>
>>
>>
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


--
Dr. Oscar Pablo Di Liscia
Profesor Titular
Director Programa de Investigación "Sistemas Temporales y Síntesis Espacial en el Arte Sonoro"
http://stseas.web.unq.edu.ar/
Director Colección Editorial "Música y Ciencia"
Escuela Universitaria de Artes
Universidad Nacional de Quilmes
Argentina
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-05-31 18:20
FromPablo Zoani Heffele
SubjectRe: [Csnd] Opcode Plugin in Windows 10 x64
Hello Pablo.

C:\Users\Usuario>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32

You are right! I can't believe i didn't notice this, i have spent a lot of time. 

Also, i discovered i already have a mingw64 in gnu octave's folder.

Regards



De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Oscar Pablo Di Liscia <oscarpablodiliscia@GMAIL.COM>
Enviado: jueves, 30 de mayo de 2019 9:51
Para: CSOUND@LISTSERV.HEANET.IE
Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
Hello Pablo:
Are you sure that the target of the compiler you are using is a 64 bits binary? If it is not,  a 64 bits version of Csound, it will not host the plugin. Maybe that's the problem.
Could you do in your windows prompt: gcc -v 
And see which the target is?
Best

El jueves, 30 de mayo de 2019, Pablo Zoani Heffele <pablozoani@hotmail.com> escribió:
Alright, i will keep try by that way when return home. Hehe. I'll let you know if i succeed

PZH


From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Victor Lazzarini <Victor.Lazzarini@MU.IE>
Sent: Thursday, May 30, 2019 9:06:20 AM
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
if you cmake, you can generate a VS project as a target.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 May 2019, at t 12:52, Pablo Zoani Heffele <pablozoani@hotmail.com> wrote:

I have tried the C++ option, changing:

gcc to g++

mult.c to mult.cpp

the output of the csound's console is the same.

now im trying the vs option. looking for the equivalent for this in vs at the moment:

gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"

regards

De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
Enviado: jueves, 30 de mayo de 2019 1:43
Para: CSOUND@LISTSERV.HEANET.IE
Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64
 
Maybe it’s because you are compiling with MinGW and Csound is built with Visual Studio. I guess someone working on
Windows might be able to help.

You could try the C++ example as well and see if it’s the same thing.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 30 May 2019, at 08:54, Pablo Zoani Heffele <pablozoani@HOTMAIL.COM> wrote:
>
> Hello Victor. I must be doing something wrong.
>
> 1) I have compiled mult.c (without modifying the code) in windows terminal with this command:
>
> gcc -O2 -shared -o mult.dll mult.c -DUSE_DOUBLE -I "C:\Program Files\Csound6_x64\include\csound"
>
> 2) I pasted the mult.dll in "C:\Program FIles\Csound6_x64\plugins64"
>
> 3) I have opened the mult.csd file in CsoundQt with opcodedir = C:/Program Files/Csound6_x64/plugins64.
>
> The result is the same, could not open library [...]\mult.dll (-1)
>
> i have gcc (MinGW.org GCC-6.3.0-1) 6.3.0 and Precompiled Csound 6.12
>
> Regards
>
>
>
> De: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> en nombre de Victor Lazzarini <Victor.Lazzarini@MU.IE>
> Enviado: miércoles, 29 de mayo de 2019 22:56
> Para: CSOUND@LISTSERV.HEANET.IE
> Asunto: Re: [Csnd] Opcode Plugin in Windows 10 x64

> there should be no difference between platforms. If it works elsewhere, it should work on Windows.
>
> There are examples here as well
>
> https://github.com/csound/opcode_sdk
>
> you can try them
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 30 May 2019, at 03:24, pablozoani <pablozoani@hotmail.com> wrote:
>
>> Hello, i am new in this subject, i am trying this example:
>>
>> http://write.flossmanuals.net/csound/extending-csound/
>>
>> when i get the .dll file i paste it in:
>>
>> "C:\Program Files\Csound6_x64\plugins64\"
>>
>> when i try to use it in csound the following message appears in the console:
>>
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\newopcode.dll' (-1)
>> WARNING: could not open library 'C:/Program
>> Files/Csound6_x64/plugins64\py.dll' (-1)
>>
>> is this working on windows 10? i am using csound 6.12.
>>
>>
>>
>>
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports tohttps://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


--
Dr. Oscar Pablo Di Liscia
Profesor Titular
Director Programa de Investigación "Sistemas Temporales y Síntesis Espacial en el Arte Sonoro"
http://stseas.web.unq.edu.ar/
Director Colección Editorial "Música y Ciencia"
Escuela Universitaria de Artes
Universidad Nacional de Quilmes
Argentina
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here