Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Swig 1.3.31 insufficient

Date2007-01-10 15:21
FromMichael Gogins
SubjectRe: [Cs-dev] Swig 1.3.31 insufficient
I now have a working installation of Linux (Ubuntu 6.10) on my notebook. 

I have not yet tried to build Csound on it. However, as time permits, I will be doing that.

The code snippit is from my typemap which seems to have broken with the latest version of gcc. You could edit the typemap (defined in one of the .i files), or you could use memcpy or another type cast. 

Reverting to gcc 3.4 something also ought to fix it.

Hope this helps until I can get on board with the Linux build,
Mike

-----Original Message-----
>From: John ffitch 
>Sent: Jan 10, 2007 6:53 AM
>To: csound-devel@lists.sourceforge.net
>Subject: [Cs-dev] Swig 1.3.31 insufficient
>
>I am back to the invalid C++ being generated by SWIG.  
>frontends/CsoundVST/CsoundVST_wrap.cc:29870: error: ISO C++ forbids assignment of arrays
>
>
>I have tried reporting this to the SWIG people but they want a 9 line
>program that breaks and apart from having to do with vargs I do not
>know what code generates this.  In practice new each version of SWIG
>adds more layers of obscuration so I no longer know how to hand-edit
>this to working code.  Does anyone know where the function
>_wrap_Counterpoint_message__SWIG_1
>comes from, and/or what the lines
>      va_list * temp = reinterpret_cast< va_list * >(argp3);
>      arg3 = *temp;
>mean?  It is the assignment to arg3 that is illegal.  Should I replace
>it with a memcopy?  It makes it compile but who knows?
>
>
>next problem is
>
>frontends/CsoundVST/CsoundVST.cpp: In member function 'virtual int CsoundVST::perform()':
>frontends/CsoundVST/CsoundVST.cpp:342: error: cast from 'void*' to 'int' loses precision
>scons: *** [frontends/CsoundVST/CsoundVST.os] Error 1
>
>==John ffitch
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-01-10 20:34
FromErik de Castro Lopo
SubjectRe: [Cs-dev] Swig 1.3.31 insufficient
Michael Gogins wrote:

> I now have a working installation of Linux (Ubuntu 6.10) on my notebook. 

Good choice.
 
> Reverting to gcc 3.4 something also ought to fix it.

On Debian and Ubuntu it is possible to have more than one version of
gcc/g++/etc installed at once.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"[Perl] combines all the worst aspects of C and Lisp: a billion different
sublanguages in one monolithic executable.  It combines the power of C with
the readability of PostScript." -- Jamie Zawinski

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net