[vsipl++] Problem compiling VSIPL++ Matrix code
Rutledge, Edward
rutledge at ll.mit.edu
Thu May 8 13:15:28 UTC 2008
Thanks for pointing that out. I will fix it.
-Eddie
___________________________
Edward Rutledge
MIT Lincoln Laboratory
244 Wood St
Lexington, MA 02420
781-981-0274
rutledge at ll.mit.edu
___________________________
-----Original Message-----
From: Stefan Seefeld [mailto:stefan at codesourcery.com]
Sent: Thursday, May 08, 2008 9:09 AM
To: Rutledge, Edward
Cc: vsipl++ at codesourcery.com
Subject: Re: [vsipl++] Problem compiling VSIPL++ Matrix code
Edward,
there is a small hard-to-see bug in this code that I ran into accidentally:
Rutledge, Edward wrote:
> int main(void)
>
> {
>
> vsip::vsipl prog();
While you probably want to create a 'vsip::vsipl' object here, what this
actually does is declare a function returning 'vsip::vsipl' and taking
no argument. (Remember the C++ rule: whenever it can be interpreted as a
declaration, it is one.)
This may lead to strange effects when you expect the library to be
initialized while it actually isn't.
Regards,
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the vsipl++
mailing list