Date: Sat, 17 May 2014 18:08:49 +0000 From: "Montgomery-Smith, Stephen" <stephen@missouri.edu> To: Tijl Coosemans <tijl@FreeBSD.org> Cc: "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org> Subject: Re: clang problems with math/octave-forge-miscellaneous Message-ID: <5377A5B0.4040803@missouri.edu> In-Reply-To: <20140517194032.07786df4@kalimero.tijl.coosemans.org> References: <537795C5.2050609@missouri.edu> <537798CE.8040009@missouri.edu> <20140517194032.07786df4@kalimero.tijl.coosemans.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05/17/2014 12:40 PM, Tijl Coosemans wrote: > On Sat, 17 May 2014 17:13:51 +0000 Montgomery-Smith, Stephen wrote: >> On 05/17/2014 12:00 PM, Montgomery-Smith, Stephen wrote: >>> I am trying to make the port math/octave-forge-miscellaneous clang >>> compliant. In the file ${WRKSRC}/partarray.cc is are lines like this: >>> >>> Array<octave_idx_type> bidc [maxdims], eidc [maxdims]; >>> ... stuff ... >>> eidc[i] =3D eidx; >>> >>> The compilation dies saying that eidc is not defined. >> >> I see the problem. The compiler actually goes wrong with >> >> Array<octave_idx_type> bidc [maxdims]; >> >> saying >> >> partarray.cc:42:31: error: variable length array of non-POD element type >> 'Array<octave_idx_type>' >> >> So the error is somewhere else. Sorry for the noise. But if I don't >> figure out the latter error, I'll be back with more questions. >=20 > You'll have to declare it as "Array<octave_idx_type> *bidc" and > use new[] and delete[]. Thank you, thank you, thank you. That fixed it!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5377A5B0.4040803>