-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows pcl_filters project build errors: error C2487 'pcl::Filter<PointT>::applyFilter : member of dll interface class may not be declared with dll interface' #426
Comments
On latest commit 0010c34 |
Hi, In the topic : |
I had the same compiler error with Visual Studio 2010 on Windows XP and 7 with 32 and 64bit and the above mentioned patch fixed the problem. It would be very nice to fix this is the head revision as well. |
@magro11 Could you please check if adding the following lines (starting at line 64) to 'filters/shadowpoints.h' fixes the issue: using FilterIndices<PointT>::applyFilter;
using Filter<PointT>::applyFilter; (Please don't forget to revert the patch before. Also this is supposed to fix the problem only with 'shadowpoints.h', but it this succeeds then we'll add these lines to all other affected files.) |
@taketwo I reverted the patch before and added the two lines in shadowpoints.h. There are still a lot of compiler errors of the same type than in the title of that issue. They only are about pcl::Filter::applyFilter, not FilterIndices::applyFilter. Unforntunately they are also in the file shadowpoints.h although I put the two lines in the corresponding header file. Only removing
in filter_indices.h let the solution compile. |
@magro11 Sorry for abusing your compiler (I do not have Windows/VS), but could you try another fix? Replace the virtual void
applyFilter (PointCloud &output) = 0; If this will not introduce new problems then I will explain what was going on and why I originally added the |
@taketwo OK, now filter_indices.h line 172ff looks like this:
This compiles now with Windows 7 and Visual Studio 2010 (32bit) both in Debug and Release. Cheers |
@magro11 Great, thanks for helping out with this. This error was introduced with 8bddcc4, where I tried so get rid of a nasty
There is a virtual function |
On Windows x64 in both debug and release mode, building project pcl_filters results in the following errors:
.. etc.
pcl_features project also does not build because it depends on pcl_filters:
"error LNK104: cannot open file '..\lib\pcl_filters_release.lib'" (same for debug)
Right now the kinfu app is not working on Windows because of this problem.
The text was updated successfully, but these errors were encountered: