Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Compilation failures

Date2016-09-30 14:45
Fromjpff
Subject[Csnd-dev] Compilation failures
Last set of changes adding const in places breaks build of winsound

/home/jpff/csound6/frontends/winsound/main.cxx: In function ‘void cs_compile_run()’:
/home/jpff/csound6/frontends/winsound/main.cxx:227:44: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive]
       res = csoundCompile(csound, nxt, argv);
                                            ^
In file included from /home/jpff/csound6/frontends/winsound/main.cxx:6:0:
/home/jpff/csound6/./include/csound.h:690:16: error:   initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ [-fpermissive]
     PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv);
                ^
/home/jpff/csound6/frontends/winsound/main.cxx: In function ‘void cs_util_opc(int)’:
/home/jpff/csound6/frontends/winsound/main.cxx:275:34: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive]
     csoundCompile(csound, 2, argv);
                                  ^
In file included from /home/jpff/csound6/frontends/winsound/main.cxx:6:0:
/home/jpff/csound6/./include/csound.h:690:16: error:   initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ [-fpermissive]
     PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv);
                ^
frontends/CMakeFiles/winsound.dir/build.make:80: recipe for target 'frontends/CMakeFiles/winsound.dir/winsound/main.cxx.o' failed

Did anyone check?

Date2016-09-30 15:57
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Compilation failures
AttachmentsNone  None  

Date2016-09-30 16:37
FromMichael Gogins
SubjectRe: [Csnd-dev] Compilation failures

I can do this.

Best,
Mike


On Sep 30, 2016 10:57 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
These were mine, I did not think of winsound, I am sorry, as I can't build it. Can you
cast it to (const char **)? It was suggested that we should tighten up on some of the
string arguments. If it becomes an unsolvable problem, we can revert.

----- Original Message -----
From: jpff <jpff@CODEMIST.CO.UK>
Date: Friday, September 30, 2016 2:46 pm
Subject: [Csnd-dev] Compilation failures
To: CSOUND-DEV@LISTSERV.HEANET.IE

> Last set of changes adding const in places breaks build of winsound
>
> /home/jpff/csound6/frontends/winsound/main.cxx: In function
> ‘void cs_compile_run()’:
> /home/jpff/csound6/frontends/winsound/main.cxx:227:44: error:
> invalid conversion from ‘char**’ to ‘const char**’ [-
> fpermissive]       res =
> csoundCompile(csound, nxt, argv);
>                                             ^
> In file included from
> /home/jpff/csound6/frontends/winsound/main.cxx:6:0:/home/jpff/csound6/./include/csound.h:690:16: error:   initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ [-fpermissive]
>      PUBLIC int csoundCompile(CSOUND *, int
> argc, const char **argv);
>                 ^
> /home/jpff/csound6/frontends/winsound/main.cxx: In function
> ‘void cs_util_opc(int)’:
> /home/jpff/csound6/frontends/winsound/main.cxx:275:34: error:
> invalid conversion from ‘char**’ to ‘const char**’ [-
> fpermissive]     csoundCompile(csound, 2, argv);
>                                   ^
> In file included from
> /home/jpff/csound6/frontends/winsound/main.cxx:6:0:/home/jpff/csound6/./include/csound.h:690:16: error:   initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ [-fpermissive]
>      PUBLIC int csoundCompile(CSOUND *, int
> argc, const char **argv);
>                 ^
> frontends/CMakeFiles/winsound.dir/build.make:80: recipe for
> target 'frontends/CMakeFiles/winsound.dir/winsound/main.cxx.o' failed
>
> Did anyone check?
>
> ==John ffitch

Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth

Date2016-09-30 16:42
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Compilation failures
AttachmentsNone  None