# PCL erros in my project

3 messages
Open this post in threaded view
|

## PCL erros in my project

 Hi everyone, I need some help! I have a project built in visual studio 2010. Now I want to integrate it with PCL. I installed everything using binaries provided on the site. I've set up all the vc++, additional include and additional lib directories, as well as the additional dependencies. When I try to compile it I get tons of erros like theses : C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error C2589: '(' : illegal token on right side of '::' C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error C2143: syntax error : missing ')' before '::' C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error C2612: trailing '::' illegal in base/member initializer list C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error C2589: '(' : illegal token on right side of '::' C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error C2143: syntax error : missing ';' before '::' To clarify what I've did I will explain my steps! 1 - Successfully compiled the example in http://www.pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber( using Cmake and vs 2010) 2- Copied all the settings from the tutorial project to my original project( directories ,dependencies and flags) Someone can help me with this? There are some way to use Cmake to setup everything for me? I mean, there are a way to use Cmake to integrate the PCL with my pre-existing project? Sorry about my english, but I'm not a native speaker. Thanks in advance.
Open this post in threaded view
|

## Re: PCL erros in my project

 Hi, On Thu, Nov 17, 2011 at 3:33 PM, sonicwill <[hidden email]> wrote: > Hi everyone, > > I need some help! > > I have a project built in visual studio 2010. Now I want to integrate it > with PCL. I installed everything using binaries provided on the site. > > I've set up all the vc++, additional include and additional lib directories, > as well as the additional dependencies. > > When I try to compile it I get tons of erros like theses : > > *C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error > C2589: '(' : illegal token on right side of '::' > C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error > C2143: syntax error : missing ')' before '::' > C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error > C2612: trailing '::' illegal in base/member initializer list > C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error > C2589: '(' : illegal token on right side of '::' > C:\Program Files\PCL 1.3.0\include\pcl-1.3\pcl/correspondence.h(64): error > C2143: syntax error : missing ';' before '::*' > > To clarify what I've did I will explain my steps! > > 1 - Successfully compiled the example in > http://www.pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber(> using Cmake and vs 2010) > > 2- Copied all the settings from the tutorial project to my original project( > directories ,dependencies and flags) > > Someone can help me with this? There are some way to use Cmake to setup > everything for me? I mean, there are a way to use Cmake to integrate the PCL > with my pre-existing project? > > Sorry about my english, but I'm not a native speaker. > > Thanks in advance. > > > -- > View this message in context: http://www.pcl-users.org/PCL-erros-in-my-project-tp3515940p3515940.html> Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com. > _______________________________________________ > [hidden email] / http://pointclouds.org> http://pointclouds.org/mailman/listinfo/pcl-users> Line 64 of correspondance.h :  distance (std::numeric_limits::max ()) maybe you have #defined max somewhere in your code ? or windows.h may be defining it it you are including it before pcl headers. Solutions, #define NOMINMAX before #including or #undef max before #including pcl headers. Mourad _______________________________________________ [hidden email] / http://pointclouds.orghttp://pointclouds.org/mailman/listinfo/pcl-users
Open this post in threaded view
|