error C2719: 'norm': formal parameter with __declspec(align('16')) won't be aligned

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

error C2719: 'norm': formal parameter with __declspec(align('16')) won't be aligned

zamzam
This post was updated on .
Hi, I have in my signature for a function

void normalProc(pcl::PointCloud<pcl::Normal> norm) {
//some stuff
}

however I when I try to compile I get the error

error C2719: 'norm': formal parameter with __declspec(align('16')) won't be aligned

I'm running VS2010 32bit, and have 32bit install for PCL.

How do I deal with it?
Thanks
Zam
Reply | Threaded
Open this post in threaded view
|

Re: error C2719: 'norm': formal parameter with __declspec(align('16')) won't be aligned

aichim
Administrator
Hi,

Hmmm, there seems to be some alignment issues happening here (maybe Eigen?).

You should never pass such large data structures by value, but by reference, or better, use the boost::shared_ptr we sprinkled everywhere (i.e., PointCloud<T>::Ptr and ::ConstPtr).

Cheers,
Alex
---
http://www.openperception.org




On May 8, 2013, at 12:04 AM, zamzam <[hidden email]> wrote:

> Hi, I have in my signature for a function
>
> void normalProc(pcl::PointCloud<pcl::Normal> norm) {
> //some stuff
> }
>
> however I when I try to compile I get the error
>
> error C2719: 'norm': formal parameter with __declspec(align('16')) won't be
> aligned
>
>
> How do I deal with it?
> Thanks
> Zam
>
>
>
> --
> View this message in context: http://www.pcl-users.org/error-C2719-norm-formal-parameter-with-declspec-align-16-won-t-be-aligned-tp4027730.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users