-
-
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] error linking pcl rangeimage LNK2020 LNK2001 LNK1120 #807
Comments
I would suggest you to try compiling the library from the latest source. Then try to apply the fixes proposed in that thread. |
I have a similar issue. I am using Visual Studio 2017 (v14) 64-bit on Win 10 64-bit. PCl 1.8 works fine on all other projects where I am using it (on Visual Studio 2013, 2017 is a recent upgrade). When I try to use RangeImage Class I get the following errors:
I read everything I could about this error on PCL mailing list but could not find a solution link which says this bug should not be present in the latest versions. I am using 1.8. Any thoughts? If there is an easier fix than recompiling the whole pcl and dependencies and the works, that is better for me. Thanks in advance. |
I had the same issue and was able to work around it. It's really strange but here's what I found: If I returned the RangeImage through a local function I would get linker errors:
If I just worked with the RangeImage inside a function I no longer received these linker errors:
Sadly, I'm not sure why it works but I hope this helps. |
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs. |
@PointCloudLibrary/testers-windows |
I'm experiencing the same problem - and like patrickabadi find this only happens if the RangeImagePlanar is being returned by a function. |
I have the some problem with vs2019 and PCL 1.11.1 when using the Common Language Runtime Support (/clr). |
same problem with vs2022 and PCL 1.14.1 when using the Common Language Runtime Support (/clr). |
I have a visual C++ project of Dynamic
Library (.dll) type. This is beacuse I want to use that C++ dll that I
build from a C# project. I use your PCL library 1.6 and it works well.
The problem appears when I include the range_image.h . The problem is that
the RangeImage class have
static const int lookup_table_size;
static std::vector asin_lookup_table;
static std::vector atan_lookup_table;
static std::vector cos_lookup_table;
and they are referenced by static inline method, an when you compile
it like a .dll using the Common Language Runtime Support (/clr) it
gives these errors
I found a similar problem reported at this post
http://www.pcl-users.org/FW-Link-time-errors-in-RangeImage-with-clr-td3581422.html
but that post is from 2011 and pcl version 1.3.0. Apparently it was solve in version 1.4.0 but I have a similar problem now with pcl version 1.6.0.
Is there a way to fix this? I'm I doing something wrong? Please, help me.
thank you for take a time to read mi question.
The text was updated successfully, but these errors were encountered: